mirror of
https://github.com/langgenius/dify.git
synced 2026-03-27 09:09:54 +08:00
fix: type
This commit is contained in:
@ -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)
|
||||
|
||||
Reference in New Issue
Block a user