fix(ui): check platform related filters mobile/web
This commit is contained in:
parent
bffcec11fd
commit
a7c884cd45
2 changed files with 6 additions and 3 deletions
|
|
@ -145,10 +145,10 @@ function FilterModal(props: Props) {
|
|||
excludeFilterKeys = [],
|
||||
allowedFilterKeys = [],
|
||||
isConditional,
|
||||
isMobile
|
||||
} = props;
|
||||
const { searchStore, searchStoreLive } = useStore();
|
||||
const filters = isLive ? searchStoreLive.filterList : searchStore.filterList;
|
||||
const { searchStore, searchStoreLive, projectsStore } = useStore();
|
||||
const isMobile = projectsStore.active?.platform === 'ios'; // TODO - should be using mobile once the app is changed
|
||||
const filters = isLive ? searchStoreLive.filterListLive : (isMobile ? searchStore.filterListMobile : searchStoreLive.filterList);
|
||||
const conditionalFilters = searchStore.filterListConditional;
|
||||
const mobileConditionalFilters = searchStore.filterListMobileConditional;
|
||||
const showSearchList = isMainSearch && searchQuery.length > 0;
|
||||
|
|
|
|||
|
|
@ -83,6 +83,9 @@ class SearchStore {
|
|||
get filterList() {
|
||||
return generateFilterOptions(filtersMap);
|
||||
}
|
||||
get filterListMobile() {
|
||||
return generateFilterOptions(filtersMap, true);
|
||||
}
|
||||
get filterListLive() {
|
||||
return generateFilterOptions(liveFiltersMap);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue