refactor(workflow): streamline node metadata structure and enhance filtering logic

This commit is contained in:
twwu
2025-09-11 16:02:06 +08:00
parent 9458ebe320
commit 274e7f4f09
15 changed files with 86 additions and 76 deletions

View File

@ -6,6 +6,7 @@ import { BlockEnum } from '@/app/components/workflow/types'
const metaData = genNodeMetaData({
sort: 2.1,
type: BlockEnum.Answer,
isRequired: true,
})
const nodeDefault: NodeDefault<AnswerNodeType> = {
metaData,