fix(frontend): missing node Result id migration (#7182)

* fix missing id changes

* fix ai tool selection
This commit is contained in:
Guilhem
2025-11-20 11:33:10 +00:00
committed by GitHub
parent cd5827e802
commit 054aeb3327
4 changed files with 7 additions and 3 deletions
+1 -1
View File
@@ -650,7 +650,7 @@
job.success &&
flowPreviewButtons?.getPreviewMode() === 'whole'
) {
if (flowModuleSchemaMap?.isNodeVisible('result') && selectedId !== 'Result') {
if (flowModuleSchemaMap?.isNodeVisible('Result') && selectedId !== 'Result') {
outputPickerOpenFns['Result']?.()
}
} else {
@@ -949,7 +949,7 @@
job.success &&
flowPreviewButtons?.getPreviewMode() === 'whole'
) {
if (flowEditor?.isNodeVisible('result') && selectedIdStore !== 'Result') {
if (flowEditor?.isNodeVisible('Result') && selectedIdStore !== 'Result') {
outputPickerOpenFns['Result']?.()
}
} else {
@@ -484,7 +484,7 @@
let targetModules
if (
detail.sourceId == 'Input' ||
detail.targetId == 'result' ||
detail.targetId == 'Result' ||
detail.kind == 'trigger'
) {
targetModules = flowStore.val.value.modules
@@ -396,6 +396,10 @@
onInsert?.(detail)
},
select: (modId) => {
// AI tools are not selectable by the flow. Selection has to be refactored to be simplier.
if (nodes.find((n) => n.data?.moduleId === modId)?.type === 'aiTool') {
selectionManager.selectId(modId)
}
if (!notSelectable) {
onSelect?.(modId)
}