fix(frontend): fix decision tree debug menu (#4212)

This commit is contained in:
Faton Ramadani
2024-08-08 14:17:43 +02:00
committed by GitHub
parent 55926f957f
commit c90fb8d293
@@ -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}