mirror of
https://github.com/langgenius/dify.git
synced 2026-01-22 03:32:58 +08:00
- Set Start node isRequired: false since entry node validation is handled by unified logic - Remove conditional skip logic in checklist since Start is no longer in isRequiredNodesType - Cleaner separation of concerns: unified entry node check vs individual required nodes - Eliminates architectural inconsistency where Start was both individually required and part of group validation
27 lines
571 B
TypeScript
27 lines
571 B
TypeScript
import type { NodeDefault } from '../../types'
|
|
import type { StartNodeType } from './types'
|
|
import { genNodeMetaData } from '@/app/components/workflow/utils'
|
|
import { BlockEnum } from '@/app/components/workflow/types'
|
|
|
|
const metaData = genNodeMetaData({
|
|
sort: 0.1,
|
|
type: BlockEnum.Start,
|
|
isStart: true,
|
|
isRequired: false,
|
|
isSingleton: true,
|
|
isTypeFixed: true,
|
|
})
|
|
const nodeDefault: NodeDefault<StartNodeType> = {
|
|
metaData,
|
|
defaultValue: {
|
|
variables: [],
|
|
},
|
|
checkValid() {
|
|
return {
|
|
isValid: true,
|
|
}
|
|
},
|
|
}
|
|
|
|
export default nodeDefault
|