fix(core): hide graph until initial fitview is done (#1459)
* fix(core): hide graph until initial fitview is done * chore(changeset): add * fix(core): wait for fit view to finish
This commit is contained in:
@@ -173,8 +173,9 @@ export function useActions(
|
||||
}
|
||||
|
||||
if (!state.fitViewOnInitDone && state.fitViewOnInit) {
|
||||
viewportHelper.value.fitView()
|
||||
state.fitViewOnInitDone = true
|
||||
viewportHelper.value.fitView().then(() => {
|
||||
state.fitViewOnInitDone = true
|
||||
})
|
||||
}
|
||||
|
||||
if (changes.length) {
|
||||
|
||||
Reference in New Issue
Block a user