fix: fixed incorrect warningkey creation in unregisterWarningsForId

ref: N25B-450
This commit is contained in:
JGerla
2026-01-22 13:09:44 +01:00
parent bb053fda21
commit 9d2f5127c1

View File

@@ -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}`);
});
}