From af9cf09baa32600586edd72f8832ec81b966ccc5 Mon Sep 17 00:00:00 2001 From: Pranav C Date: Mon, 8 Aug 2022 00:05:12 +0530 Subject: [PATCH] fix(gui-v2): exclude deleted fields from fields list Signed-off-by: Pranav C --- packages/nc-gui-v2/composables/useViewColumns.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/nc-gui-v2/composables/useViewColumns.ts b/packages/nc-gui-v2/composables/useViewColumns.ts index 4bfe8e52c0..5f4fb26b7d 100644 --- a/packages/nc-gui-v2/composables/useViewColumns.ts +++ b/packages/nc-gui-v2/composables/useViewColumns.ts @@ -135,7 +135,7 @@ export function useViewColumns( ) { return false } - return c.show + return c.show && metaColumnById?.value?.[c.fk_column_id!] }) ?.sort((a, b) => a.order - b.order) ?.map((c) => metaColumnById?.value?.[c.fk_column_id!]) || []) as ColumnType[]