mirror of
https://github.com/windmill-labs/windmill.git
synced 2026-08-21 16:02:28 +00:00
fix(frontend): missing node Result id migration (#7182)
* fix missing id changes * fix ai tool selection
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user