From 01a3c607994fc1f70d94e86fb2e4cb45e4c8025b Mon Sep 17 00:00:00 2001 From: DarkPhoenix2704 Date: Thu, 2 Nov 2023 09:40:07 +0000 Subject: [PATCH] fix(nc-gui): calculate has also on Mount --- packages/nc-gui/components/smartsheet/details/Fields.vue | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/packages/nc-gui/components/smartsheet/details/Fields.vue b/packages/nc-gui/components/smartsheet/details/Fields.vue index c12e8f6b6f..9ef52b6a85 100644 --- a/packages/nc-gui/components/smartsheet/details/Fields.vue +++ b/packages/nc-gui/components/smartsheet/details/Fields.vue @@ -662,6 +662,12 @@ watch( }, { deep: true }, ) + +onMounted(async () => { + if (meta.value && meta.value.id) { + columnsHash.value = (await $api.dbTableColumn.hash(meta.value.id)).hash + } +})