From 9d2f5127c1c37876345b4b11f9d8c92800225a40 Mon Sep 17 00:00:00 2001 From: JGerla Date: Thu, 22 Jan 2026 13:09:44 +0100 Subject: [PATCH] fix: fixed incorrect warningkey creation in unregisterWarningsForId ref: N25B-450 --- .../visualProgrammingUI/components/EditorWarnings.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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}`); }); }