fix provider error

This commit is contained in:
peterkogo
2025-04-14 11:27:44 +02:00
parent f249210ab2
commit 6be1b7822b
2 changed files with 4 additions and 6 deletions

View File

@@ -11,7 +11,7 @@
getViewport,
toObject,
deleteElements
} = useSvelteFlow();
} = $derived(useSvelteFlow());
let nodes = useNodes();
let edges = useEdges();
@@ -20,7 +20,8 @@
const deleteNode = () => {
//TODO: do we really want to allow this?
// nodes.shift();
// nodes = nodes;
nodes.current.shift();
nodes.current = [...nodes.current];
};
</script>