Skip to content

Commit

Permalink
fix: ES query and get filter from url
Browse files Browse the repository at this point in the history
  • Loading branch information
f-necas committed Oct 2, 2023
1 parent cff979a commit f3c2c8b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -429,7 +429,7 @@ export class ElasticsearchService {
return Object.keys(filter)
.map((key) => {
if (filter[key] === true) {
return `"${key}"`
return `${key}`
}
return `-"${key}"`
})
Expand Down
2 changes: 1 addition & 1 deletion libs/feature/search/src/lib/state/selectors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -95,5 +95,5 @@ export const getSpatialFilterEnabled = createSelector(

export const getMyRecordsFilterEnabled = createSelector(
getSearchStateSearch,
(state: SearchStateSearch) => state.params.useMyRecordsFilter
(state: SearchStateSearch) => !!state.params.filters?.owner
)

0 comments on commit f3c2c8b

Please sign in to comment.