fix type updateNode

This commit is contained in:
peterkogo
2025-04-17 16:40:50 +02:00
parent 889e252da8
commit aaed8c721e
3 changed files with 5 additions and 6 deletions

View File

@@ -145,7 +145,7 @@
let { updateNode } = $derived(useSvelteFlow());
function hideUnhide() {
updateNode('hideunhide', (node) => ({ ...node, hidden: !node.hidden }));
updateNode('hideunhide', (node) => ({ hidden: !node.hidden }));
}
// $inspect(edges);

View File

@@ -56,7 +56,6 @@
const updateNodePosition = () => {
updateNode('1', (node) => ({
...node,
position: { x: node.position.x + 10, y: node.position.y }
}));
};