fix: wrong watch source in nodes

* causes console warnings

Signed-off-by: Braks <78412429+bcakmakoglu@users.noreply.github.com>
This commit is contained in:
Braks
2021-11-15 12:50:03 +01:00
parent 9c3eeef5eb
commit d6ee5f8868
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -166,6 +166,6 @@ const onElementsRemove = (elementsToRemove: Elements) => (elements.value = remov
> >
<MiniMap :node-stroke-color="nodeStrokeColor" :node-color="nodeColor" :node-border-radius="2" /> <MiniMap :node-stroke-color="nodeStrokeColor" :node-color="nodeColor" :node-border-radius="2" />
<Controls /> <Controls />
<Background color="#aaa" gap="20" /> <Background color="#aaa" :gap="20" />
</Flow> </Flow>
</template> </template>
+1 -1
View File
@@ -118,7 +118,7 @@ onMounted(() => {
}), }),
) )
watch([props.node.type, props.node.sourcePosition, props.node.targetPosition], () => { watch([() => props.node.type, () => props.node.sourcePosition, () => props.node.targetPosition], () => {
nextTick(() => { nextTick(() => {
store.updateNodeDimensions({ store.updateNodeDimensions({
id: props.node.id, id: props.node.id,