Browse Source

fix(gui-v2): exclude deleted fields from fields list

Signed-off-by: Pranav C <pranavxc@gmail.com>
pull/3005/head
Pranav C 2 years ago
parent
commit
af9cf09baa
  1. 2
      packages/nc-gui-v2/composables/useViewColumns.ts

2
packages/nc-gui-v2/composables/useViewColumns.ts

@ -135,7 +135,7 @@ export function useViewColumns(
) { ) {
return false return false
} }
return c.show return c.show && metaColumnById?.value?.[c.fk_column_id!]
}) })
?.sort((a, b) => a.order - b.order) ?.sort((a, b) => a.order - b.order)
?.map((c) => metaColumnById?.value?.[c.fk_column_id!]) || []) as ColumnType[] ?.map((c) => metaColumnById?.value?.[c.fk_column_id!]) || []) as ColumnType[]

Loading…
Cancel
Save