Skip to content

πŸ”₯ πŸ”₯ πŸ”₯ A Free & Self-hostable Airtable Alternative

fix(Sentry TypeError): Cannot read properties of undefined (reading 'includes')

Ramesh Maned09b724fd1a7
diff --git a/packages/nc-gui/composables/useKanbanViewStore.ts b/packages/nc-gui/composables/useKanbanViewStore.ts
index a5ad1420c0..ca6e8dc4df 100644
--- a/packages/nc-gui/composables/useKanbanViewStore.ts
+++ b/packages/nc-gui/composables/useKanbanViewStore.ts
@@ -273,7 +273,7 @@ const [useProvideKanbanViewStore, useKanbanViewStore] = useInjectionState(
}
// handle deleted options
- const columnOptionIds = (groupingFieldColumn.value?.colOptions as SelectOptionsType)?.options.map(({ id }) => id)
+ const columnOptionIds = (groupingFieldColumn.value?.colOptions as SelectOptionsType)?.options.map(({ id }) => id!) ?? []
const cols = stackMetaObj.value[fk_grp_col_id].filter(
({ id }) => id !== uncategorizedStackId && !columnOptionIds.includes(id),
)