Skip to content

Commit

Permalink
Remove is-absent option from boolean filter fields
Browse files Browse the repository at this point in the history
  • Loading branch information
futa-ikeda committed Aug 22, 2023
1 parent 09539e2 commit 14407b0
Showing 1 changed file with 1 addition and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,7 @@ export default class FilterFacet extends Component<FilterFacetArgs> {
// If the property is a boolean filter (e.g. hasDataResource), we don't want to fetch IRI values
// SHARE API filters on these properties using:
// `share.osf.io/api/v3/index-card-search?cardSearchFilter[hasDataResource][is-present]`
// or cardSearchFilter[hasDataResource][is-absent] (although this one is not used in the app)
if (booleanFilterProperties.includes(property.shortFormLabel)) {
this.filterableValues = [
{
Expand All @@ -130,13 +131,6 @@ export default class FilterFacet extends Component<FilterFacetArgs> {
resourceId: 'is-present',
},
},
{
resourceId: 'is-absent',
indexCard: {
label: this.intl.t('search.filter-facet.no-resource', { resource: property.displayLabel }),
resourceId: 'is-absent',
},
},
];
return;
}
Expand Down

0 comments on commit 14407b0

Please sign in to comment.