From 9dc5c11643cf0c08eeb651d9119a74b8700a9532 Mon Sep 17 00:00:00 2001 From: braks <78412429+bcakmakoglu@users.noreply.github.com> Date: Wed, 28 Sep 2022 12:37:12 +0200 Subject: [PATCH] fix(nc-gui): check if activeTab exists --- packages/nc-gui/components/tabs/Smartsheet.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/nc-gui/components/tabs/Smartsheet.vue b/packages/nc-gui/components/tabs/Smartsheet.vue index e3519956e8..c4a8edda3e 100644 --- a/packages/nc-gui/components/tabs/Smartsheet.vue +++ b/packages/nc-gui/components/tabs/Smartsheet.vue @@ -34,7 +34,7 @@ const activeView = ref() const fields = ref([]) -const meta = computed(() => metas.value[activeTab.value.id!]) +const meta = computed(() => activeTab.value && metas.value[activeTab.value.id!]) const reloadEventHook = createEventHook()