mirror of
https://github.com/windmill-labs/windmill.git
synced 2026-08-22 00:01:34 +00:00
fix(frontend): fix decision tree debug menu (#4212)
This commit is contained in:
@@ -144,21 +144,6 @@
|
||||
subGridIndex: nodes.findIndex((node) => node.id === currentNodeId)
|
||||
}
|
||||
}
|
||||
|
||||
function updateDebuggingComponents() {
|
||||
const nodeIds = nodes.map((node) => node.id).sort()
|
||||
const debuggingComponentsIds = Object.keys($debuggingComponents).sort()
|
||||
|
||||
if (JSON.stringify(nodeIds) !== JSON.stringify(debuggingComponentsIds)) {
|
||||
debuggingComponentsIds.forEach((id) => {
|
||||
if (!nodeIds.includes(id)) {
|
||||
delete $debuggingComponents[id]
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
$: nodes && $debuggingComponents && updateDebuggingComponents()
|
||||
</script>
|
||||
|
||||
{#if Object.keys(resolvedConditions).length === nodes.length}
|
||||
|
||||
Reference in New Issue
Block a user