diff --git a/src/pages/VisProgPage/visualProgrammingUI/components/EditorWarnings.tsx b/src/pages/VisProgPage/visualProgrammingUI/components/EditorWarnings.tsx index d222cd0..e394502 100644 --- a/src/pages/VisProgPage/visualProgrammingUI/components/EditorWarnings.tsx +++ b/src/pages/VisProgPage/visualProgrammingUI/components/EditorWarnings.tsx @@ -187,7 +187,9 @@ export function editorWarningRegistry(get: ZustandGet, set: ZustandSet) : Editor // remove from severity index if (nodeWarnings) { nodeWarnings.forEach((warning) => { - const warningKey = `${warning.type}:${warning.scope.handleId}`; + const warningKey = warning.scope.handleId + ? `${warning.type}:${warning.scope.handleId}` + : warning.type; sIndex.get(warning.severity)?.delete(`${id}|${warningKey}`); }); }