Skip to content

Commit

Permalink
api: fix broken multiple filter selection in invenio serializer
Browse files Browse the repository at this point in the history
  • Loading branch information
FlorianCassayre authored and ntarocco committed Oct 6, 2020
1 parent 2e20c7a commit db939e9
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/lib/api/contrib/invenio/InvenioRequestSerializer.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,11 @@ export class InvenioRequestSerializer {
}
const aggName = filter[0];
const fieldValue = filter[1];
filterUrlParams[aggName] = fieldValue;
if (aggName in filterUrlParams) {
filterUrlParams[aggName].push(fieldValue);
} else {
filterUrlParams[aggName] = [fieldValue];
}
const hasChild = filter.length === 3;
if (hasChild) {
this._addFilter(filter[2], filterUrlParams);
Expand Down

0 comments on commit db939e9

Please sign in to comment.