refactor(core): remove initialized from graph-nodes (#1457)
* refactor(core): remove `initialized` from graph-nodes * chore(changeset): add * refactor(node-resizer): replace node initialized check * chore(changeset): add
This commit is contained in:
@@ -183,7 +183,9 @@ export function applyChanges<
|
||||
const parent = elements[elementIds.indexOf(element.parentNode)]
|
||||
|
||||
if (parent && isGraphNode(parent)) {
|
||||
if (!parent.initialized) {
|
||||
const parentInit = !!parent.dimensions.width && !!parent.dimensions.height
|
||||
|
||||
if (!parentInit) {
|
||||
nextTick(() => {
|
||||
handleParentExpand(element, parent)
|
||||
})
|
||||
@@ -192,10 +194,6 @@ export function applyChanges<
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (!element.initialized) {
|
||||
element.initialized = true
|
||||
}
|
||||
}
|
||||
break
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user