feat: knowledge node var init value and limit

This commit is contained in:
Joel
2024-03-15 19:22:07 +08:00
parent 4835358f24
commit aff5ab933b
4 changed files with 30 additions and 4 deletions

View File

@ -16,7 +16,7 @@ export const useNodesInitialData = () => {
return useMemo(() => produce(NODES_INITIAL_DATA, (draft) => {
Object.keys(draft).forEach((key) => {
draft[key as BlockEnum].title = t(`workflow.blocks.${key}`)
draft[key as BlockEnum]._isReady = true
if (nodesDefaultConfigs[key as BlockEnum]) {
draft[key as BlockEnum] = {
...draft[key as BlockEnum],