fix(ui): default filter for mobile is wrong
This commit is contained in:
parent
98405db9ff
commit
603df2d559
1 changed files with 3 additions and 2 deletions
|
|
@ -24,8 +24,9 @@ function SessionFilters() {
|
|||
const activeProject = projectsStore.active
|
||||
|
||||
useEffect(() => {
|
||||
if (searchStore.instance.filters.length === 0 && activeProject?.platform !== 'web') {
|
||||
searchStore.addFilterByKeyAndValue(FilterKey.LOCATION, '', 'isAny')
|
||||
// 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')
|
||||
}
|
||||
}, [projectsStore.activeSiteId, activeProject])
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue