Skip to content

Database governance built for humans and agents — controlling changes and access across every major database.

fix: project tabs state (#6212)

boojacka95dec0bd58b
diff --git a/frontend/src/layouts/ProjectLayout.vue b/frontend/src/layouts/ProjectLayout.vue
index 44411515b7..0c5d4cf0b0 100644
--- a/frontend/src/layouts/ProjectLayout.vue
+++ b/frontend/src/layouts/ProjectLayout.vue
@@ -40,7 +40,7 @@
</template>
<script lang="ts">
-import { computed, defineComponent, reactive, watch } from "vue";
+import { computed, defineComponent, nextTick, reactive, watch } from "vue";
import { useRouter } from "vue-router";
import { startCase } from "lodash-es";
@@ -231,9 +231,11 @@ export default defineComponent({
};
watch(
- () => router.currentRoute.value.hash,
+ () => [router.currentRoute.value.hash],
() => {
- selectProjectTabOnHash();
+ nextTick(() => {
+ selectProjectTabOnHash();
+ });
},
{
immediate: true,