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 and netroy committed Aug 18, 2023
1 parent e685780 commit 239e967
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 239e967

Please sign in to comment.