refactor(core): set node initialized after applying dimensions change

Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com>
This commit is contained in:
braks
2023-01-18 20:47:32 +01:00
committed by Braks
parent f411f5b560
commit 9276beb50d
2 changed files with 2 additions and 2 deletions
-2
View File
@@ -139,8 +139,6 @@ export function useActions(state: State, getters: ComputedGetters): Actions {
node.handleBounds.source = getHandleBounds('.source', update.nodeElement, zoom)
node.handleBounds.target = getHandleBounds('.target', update.nodeElement, zoom)
if (!node.initialized) node.initialized = true
res.push({
id: node.id,
type: 'dimensions',
+2
View File
@@ -169,6 +169,8 @@ export const applyChanges = <
handleParentExpand(element, parent)
}
}
if (!element.initialized) element.initialized = true
}
break
}