diff --git a/packages/nc-gui/components/erd/SimpleView.vue b/packages/nc-gui/components/erd/SimpleView.vue index 4ba3a17bb0..3de85edb93 100644 --- a/packages/nc-gui/components/erd/SimpleView.vue +++ b/packages/nc-gui/components/erd/SimpleView.vue @@ -24,9 +24,8 @@ const { metasWithIdAsKey } = useMetas() const { $destroy, fitView } = useVueFlow() -const { $destroy, fitView } = useVueFlow() - const isTransitioning = ref(true) + const nodes = ref([]) const edges = ref([]) @@ -187,6 +186,7 @@ const init = (reset = false) => { populateInitialNodes() populateEdges() layoutNodes() + if (reset) { setTimeout(() => fitView({ duration: 300 })) } @@ -222,7 +222,7 @@ useEventListener('transitionend', () => {
diff --git a/packages/nc-gui/components/erd/View.vue b/packages/nc-gui/components/erd/View.vue index a834716888..479b1cc968 100644 --- a/packages/nc-gui/components/erd/View.vue +++ b/packages/nc-gui/components/erd/View.vue @@ -118,8 +118,9 @@ watch( class="ml-2 select-none nc-erd-showColumns-label" style="font-size: 0.65rem" @dblclick="showAdvancedOptions = true" - >{{ $t('activity.erd.showColumns') }} + > + {{ $t('activity.erd.showColumns') }} +