mirror of
https://github.com/langgenius/dify.git
synced 2026-05-12 15:58:19 +08:00
fix: type
This commit is contained in:
parent
c0c2a9ef9e
commit
53bba21dd9
@ -1,7 +1,7 @@
|
|||||||
import { parseAsStringLiteral } from 'nuqs'
|
import { parseAsStringLiteral } from 'nuqs'
|
||||||
import { ViewType } from '@/app/components/workflow/types'
|
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)
|
export const parseAsViewType = parseAsStringLiteral(VIEW_TYPES)
|
||||||
.withDefault(ViewType.graph)
|
.withDefault(ViewType.graph)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user