Skip to content

Commit

Permalink
fix(editor): Prevent Code node linter from erroring on null parse (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
ivov authored Aug 16, 2023
1 parent d4fac05 commit 40d3a29
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/editor-ui/src/components/CodeNodeEditor/linter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,8 @@ export const linterExtension = defineComponent({
}
}

if (ast === null) return [];

const lintings: Diagnostic[] = [];

/**
Expand Down

0 comments on commit 40d3a29

Please sign in to comment.