Skip to content

Commit

Permalink
Correctly detect whether global Item Search is available
Browse files Browse the repository at this point in the history
  • Loading branch information
m-mohr committed Dec 17, 2024
1 parent a31e536 commit 15b3112
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/components/ApiCapabilitiesMixin.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export const TYPES = {
},
// STAC API - Item Search
Global: {
BasicFilters: true,
BasicFilters: ['https://api.stacspec.org/v1.*/item-search'],
CollectionIdFilter: true,
ItemIdFilter: true,
CqlFilters: ['https://api.stacspec.org/v1.*/item-search#filter'],
Expand Down
2 changes: 1 addition & 1 deletion src/store/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ function getStore(config, router) {
return getters.canSearchCollections || getters.canSearchItems;
},
canSearchItems: (state, getters) => {
return getters.supportsConformance(TYPES.Items.BasicFilters);
return getters.supportsConformance(TYPES.Global.BasicFilters);
},
canSearchCollections: (state, getters) => {
return getters.supportsConformance(TYPES.Collections.BasicFilters);
Expand Down

0 comments on commit 15b3112

Please sign in to comment.