diff --git a/packages/editor-ui/src/components/CodeNodeEditor/linter.ts b/packages/editor-ui/src/components/CodeNodeEditor/linter.ts index 85343e3615593..f1fe9db6d4fcd 100644 --- a/packages/editor-ui/src/components/CodeNodeEditor/linter.ts +++ b/packages/editor-ui/src/components/CodeNodeEditor/linter.ts @@ -66,6 +66,8 @@ export const linterExtension = defineComponent({ } } + if (ast === null) return []; + const lintings: Diagnostic[] = []; /**