From b088a2e7011a6c688916cb2e6a40e7cae5a66e9b Mon Sep 17 00:00:00 2001 From: Danilo Woznica Date: Mon, 16 May 2022 21:37:02 +0200 Subject: [PATCH] fix(inline-error): check if error message has a valid value (#466) * Update CodeMirror.tsx * Update CodeMirror.tsx --- sandpack-react/src/components/CodeEditor/CodeMirror.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sandpack-react/src/components/CodeEditor/CodeMirror.tsx b/sandpack-react/src/components/CodeEditor/CodeMirror.tsx index 0ba7fedd4..730671da4 100644 --- a/sandpack-react/src/components/CodeEditor/CodeMirror.tsx +++ b/sandpack-react/src/components/CodeEditor/CodeMirror.tsx @@ -356,7 +356,7 @@ export const CodeMirror = React.forwardRef( if ( message.type === "action" && message.action === "show-error" && - "line" in message + message.line ) { view?.dispatch({ annotations: [