ui: rm default filter for mob
This commit is contained in:
parent
974bbf7e4f
commit
64cd7192ad
1 changed files with 6 additions and 9 deletions
|
|
@ -35,14 +35,11 @@ function SessionFilters() {
|
|||
|
||||
useEffect(() => {
|
||||
// Add default location/screen filter if no filters are present
|
||||
if (searchStore.instance.filters.length === 0) {
|
||||
searchStore.addFilterByKeyAndValue(
|
||||
activeProject?.platform === 'web'
|
||||
? FilterKey.LOCATION
|
||||
: FilterKey.VIEW_MOBILE,
|
||||
'',
|
||||
'isAny',
|
||||
);
|
||||
if (
|
||||
searchStore.instance.filters.length === 0 &&
|
||||
activeProject?.platform === 'web'
|
||||
) {
|
||||
searchStore.addFilterByKeyAndValue(FilterKey.LOCATION, '', 'isAny');
|
||||
}
|
||||
void reloadTags();
|
||||
}, [projectsStore.activeSiteId, activeProject]);
|
||||
|
|
@ -65,7 +62,7 @@ function SessionFilters() {
|
|||
};
|
||||
|
||||
const onFilterMove = (newFilters: any) => {
|
||||
searchStore.updateSearch({ ...appliedFilter, filters: newFilters});
|
||||
searchStore.updateSearch({ ...appliedFilter, filters: newFilters });
|
||||
// debounceFetch();
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue