mirror of
https://github.com/langgenius/dify.git
synced 2026-07-20 09:38:32 +08:00
24 lines
658 B
TypeScript
24 lines
658 B
TypeScript
import type { NodeDefault } from '../../types'
|
|
import type { SimpleNodeType } from '@/app/components/workflow/simple-node/types'
|
|
import { BlockClassification } from '@/app/components/workflow/block-selector/types'
|
|
import { BlockEnum } from '@/app/components/workflow/types'
|
|
import { genNodeMetaData } from '@/app/components/workflow/utils'
|
|
|
|
const metaData = genNodeMetaData({
|
|
classification: BlockClassification.Logic,
|
|
sort: 2,
|
|
type: BlockEnum.LoopEnd,
|
|
isSingleton: true,
|
|
})
|
|
const nodeDefault: NodeDefault<SimpleNodeType> = {
|
|
metaData,
|
|
defaultValue: {},
|
|
checkValid() {
|
|
return {
|
|
isValid: true,
|
|
}
|
|
},
|
|
}
|
|
|
|
export default nodeDefault
|