Skip to content

Commit

Permalink
Exclude list items with an undefined checked property
Browse files Browse the repository at this point in the history
  • Loading branch information
mohamedsalem401 committed Nov 27, 2023
1 parent 8341ee9 commit e1923b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/parseFile.ts
Expand Up @@ -170,7 +170,7 @@ export const extractTasks = (ast: Root) => {
if (node.type === "listItem") {
const description = recursivelyExtractText(node).trim();
const checked = node.checked;
if (checked !== null) {
if (checked !== null && checked !== undefined) {
tasks.push({
description,
checked,
Expand Down

0 comments on commit e1923b3

Please sign in to comment.