mirror of
https://github.com/langgenius/dify.git
synced 2026-05-03 08:58:09 +08:00
available nodes
This commit is contained in:
@ -1,4 +1,4 @@
|
||||
import type { NodeDefault } from '../../types'
|
||||
import { BlockEnum, type NodeDefault } from '../../types'
|
||||
import { type IfElseNodeType, LogicalOperator } from './types'
|
||||
import { ALL_CHAT_AVAILABLE_BLOCKS, ALL_COMPLETION_AVAILABLE_BLOCKS } from '@/app/components/workflow/constants'
|
||||
|
||||
@ -23,7 +23,7 @@ const nodeDefault: NodeDefault<IfElseNodeType> = {
|
||||
},
|
||||
getAvailableNextNodes(isChatMode: boolean) {
|
||||
const nodes = isChatMode ? ALL_CHAT_AVAILABLE_BLOCKS : ALL_COMPLETION_AVAILABLE_BLOCKS
|
||||
return nodes
|
||||
return nodes.filter(type => type !== BlockEnum.VariableAssigner)
|
||||
},
|
||||
checkValid(payload: IfElseNodeType) {
|
||||
let isValid = true
|
||||
|
||||
Reference in New Issue
Block a user