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 11<script setup lang="ts">
22import type { SessionContext } from ' ~~/shared/types'
33import { useRoute , useRouter } from ' #app/composables/router'
4- import { clearUndefined } from ' @antfu/utils'
4+ import { clearUndefined , toArray } from ' @antfu/utils'
55import { computedWithControl , debouncedWatch } from ' @vueuse/core'
66import Fuse from ' fuse.js'
77import { computed , reactive } from ' vue'
@@ -24,8 +24,8 @@ const router = useRouter()
2424
2525const filters = reactive <Filters >({
2626 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 ,
2929})
3030
3131debouncedWatch (
You can’t perform that action at this time.
0 commit comments