diff --git a/packages/nc-gui/components/erd/Flow.vue b/packages/nc-gui/components/erd/Flow.vue index 542cb2e6b1..fb0ba5ccc0 100644 --- a/packages/nc-gui/components/erd/Flow.vue +++ b/packages/nc-gui/components/erd/Flow.vue @@ -23,9 +23,11 @@ const showSkeleton = computed(() => viewport.value.zoom < 0.25) function init() { layout(showSkeleton.value) - setTimeout(() => { - fitView({ duration: 500 }) - }, 100) + if (!showSkeleton.value) { + setTimeout(() => { + fitView({ duration: 300 }) + }, 100) + } } onPaneReady(init)