File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed
src/routes/$chainSlug/_layout Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change 99 useNavigate ,
1010} from '@tanstack/react-router' ;
1111import { LoaderCircle } from 'lucide-react' ;
12+ import { useEffect } from 'react' ;
1213import useLocalStorageState from 'use-local-storage-state' ;
1314import { DataTable } from '@/components/DataTable' ;
1415import { PaginatedNavigation } from '@/components/PaginatedNavigation' ;
@@ -133,6 +134,12 @@ function DatasetsRoute() {
133134 const filters : SchemaFilter [ ] = decodeSchemaFilters ( search ?. schema ) ;
134135 const { chainId } = useUserStore ( ) ;
135136
137+ useEffect ( ( ) => {
138+ if ( ! isSchemaSearchOpen && filters . length > 0 ) {
139+ setIsSchemaSearchOpen ( true ) ;
140+ }
141+ } , [ ] ) ;
142+
136143 const handleAddFilter = ( filter : SchemaFilter ) => {
137144 const newFilters : SchemaFilter [ ] = [
138145 ...filters . filter (
You can’t perform that action at this time.
0 commit comments