fix provider error
This commit is contained in:
@@ -11,7 +11,7 @@
|
|||||||
getViewport,
|
getViewport,
|
||||||
toObject,
|
toObject,
|
||||||
deleteElements
|
deleteElements
|
||||||
} = useSvelteFlow();
|
} = $derived(useSvelteFlow());
|
||||||
|
|
||||||
let nodes = useNodes();
|
let nodes = useNodes();
|
||||||
let edges = useEdges();
|
let edges = useEdges();
|
||||||
@@ -20,7 +20,8 @@
|
|||||||
const deleteNode = () => {
|
const deleteNode = () => {
|
||||||
//TODO: do we really want to allow this?
|
//TODO: do we really want to allow this?
|
||||||
// nodes.shift();
|
// nodes.shift();
|
||||||
// nodes = nodes;
|
nodes.current.shift();
|
||||||
|
nodes.current = [...nodes.current];
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|||||||
@@ -11,10 +11,7 @@
|
|||||||
createStore({
|
createStore({
|
||||||
props: {},
|
props: {},
|
||||||
nodes: [],
|
nodes: [],
|
||||||
edges: [],
|
edges: []
|
||||||
nodesDraggable: true,
|
|
||||||
nodesConnectable: true,
|
|
||||||
elementsSelectable: true
|
|
||||||
})
|
})
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user