fix(web): workflow variable

This commit is contained in:
zhaoying
2025-12-23 11:20:04 +08:00
parent cd325fe198
commit 5736a70ccb
8 changed files with 46 additions and 30 deletions

View File

@@ -83,8 +83,8 @@ export const useWorkflowGraph = ({
if (nodeLibraryConfig?.config) {
Object.keys(nodeLibraryConfig.config).forEach(key => {
if (nodeLibraryConfig.config && nodeLibraryConfig.config[key]) {
nodeLibraryConfig.config[key].defaultValue = config[key] || {}
if (nodeLibraryConfig.config && nodeLibraryConfig.config[key] && config[key]) {
nodeLibraryConfig.config[key].defaultValue = config[key]
}
})
}