Skip to content

Commit

Permalink
Allow multiple values for a filterable property (#1947)
Browse files Browse the repository at this point in the history
  • Loading branch information
futa-ikeda authored Aug 21, 2023
1 parent a782496 commit a1405a7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/osf-components/addon/components/search-page/component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,8 @@ export default class SearchPage extends Component<SearchArgs> {
return acc;
}
// other filters should look like cardSearchFilter[propertyName]=IRI
acc[filter.propertyShortFormLabel] = filter.value;
const currentValue = acc[filter.propertyShortFormLabel];
acc[filter.propertyShortFormLabel] = currentValue ? currentValue.concat(filter.value) : [filter.value];
return acc;
}, {} as { [key: string]: any });
let resourceTypeFilter = this.resourceType as string;
Expand Down

0 comments on commit a1405a7

Please sign in to comment.