Skip to content

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

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

Ramesh Mane204eb627f9eb
diff --git a/packages/nc-gui/helpers/tiptap-markdown/extensions/nodes/task-item.ts b/packages/nc-gui/helpers/tiptap-markdown/extensions/nodes/task-item.ts
index 6d6f73271c..1553d839fd 100644
--- a/packages/nc-gui/helpers/tiptap-markdown/extensions/nodes/task-item.ts
+++ b/packages/nc-gui/helpers/tiptap-markdown/extensions/nodes/task-item.ts
@@ -181,7 +181,7 @@ export const TaskItem = Node.create<TaskItemOptions, { markdown: MarkdownNodeSpe
find: inputRegex,
type: this.type,
getAttributes: (match) => ({
- checked: match[match.length - 1].toLowerCase() === 'x',
+ checked: match[match.length - 1]?.toLowerCase() === 'x',
}),
}),
]