File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
packages/devtools/src/app/pages/session/[session]/graph Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 1
1
<script setup lang="ts">
2
2
import type { SessionContext } from ' ~~/shared/types'
3
3
import { useRoute , useRouter } from ' #app/composables/router'
4
- import { clearUndefined } from ' @antfu/utils'
4
+ import { clearUndefined , toArray } from ' @antfu/utils'
5
5
import { computedWithControl , debouncedWatch } from ' @vueuse/core'
6
6
import Fuse from ' fuse.js'
7
7
import { computed , reactive } from ' vue'
@@ -24,8 +24,8 @@ const router = useRouter()
24
24
25
25
const filters = reactive <Filters >({
26
26
search: (route .query .search || ' ' ) as string ,
27
- file_types: (route .query .file_types || null ) as string [] | null ,
28
- node_modules: (route .query .node_modules || null ) as string [] | null ,
27
+ file_types: (route .query .file_types ? toArray ( route . query . file_types ) : null ) as string [] | null ,
28
+ node_modules: (route .query .node_modules ? toArray ( route . query . node_modules ) : null ) as string [] | null ,
29
29
})
30
30
31
31
debouncedWatch (
You can’t perform that action at this time.
0 commit comments