fix: type

This commit is contained in:
yyh
2026-03-26 18:46:09 +08:00
parent c0c2a9ef9e
commit 53bba21dd9

View File

@ -1,7 +1,7 @@
import { parseAsStringLiteral } from 'nuqs'
import { ViewType } from '@/app/components/workflow/types'
const VIEW_TYPES = Object.values(ViewType) as ViewType[]
const VIEW_TYPES = Object.values(ViewType)
export const parseAsViewType = parseAsStringLiteral(VIEW_TYPES)
.withDefault(ViewType.graph)