From 7c2106ca2326faeea1d5e792952b752c6273b051 Mon Sep 17 00:00:00 2001 From: Ramesh Mane <101566080+rameshmane7218@users.noreply.github.com> Date: Wed, 31 Jul 2024 18:37:23 +0530 Subject: [PATCH] fix(nc-gui): wait for meta columns on mount fields page (#9124) --- packages/nc-gui/components/smartsheet/details/Fields.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/nc-gui/components/smartsheet/details/Fields.vue b/packages/nc-gui/components/smartsheet/details/Fields.vue index 3c3224a8dc..98793f58b6 100644 --- a/packages/nc-gui/components/smartsheet/details/Fields.vue +++ b/packages/nc-gui/components/smartsheet/details/Fields.vue @@ -911,12 +911,12 @@ watch( ) onMounted(async () => { + await until(() => !!(meta.value?.id && meta.value?.columns)).toBeTruthy() + if (meta.value && meta.value.id) { columnsHash.value = (await $api.dbTableColumn.hash(meta.value.id)).hash } - await until(() => meta.value?.columns) - metaToLocal() })