From 1d8c68f37da0c3c2cbf0e1ef5d6296543c5cb1d3 Mon Sep 17 00:00:00 2001 From: DarkPhoenix2704 Date: Mon, 2 Oct 2023 11:28:38 +0000 Subject: [PATCH] fix: class bug --- .../nc-gui/components/smartsheet/details/Fields.vue | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/packages/nc-gui/components/smartsheet/details/Fields.vue b/packages/nc-gui/components/smartsheet/details/Fields.vue index 43272d5ebe..3f66775416 100644 --- a/packages/nc-gui/components/smartsheet/details/Fields.vue +++ b/packages/nc-gui/components/smartsheet/details/Fields.vue @@ -88,7 +88,7 @@ const getFieldOrder = (field?: TableExplorerColumn) => { const fields = computed({ get: () => { - const x = (meta.value?.columns as ColumnType[]) + const x = ((meta.value?.columns as ColumnType[]) ?? []) .filter((field) => !field.fk_column_id && !isSystemColumn(field)) .concat(newFields.value) .sort((a, b) => { @@ -614,12 +614,12 @@ onMounted(async () => {
-
+