Fix DUMAS workflow aux_id metadata

This commit is contained in:
2026-11-05 09:02:47 +00:00
parent f677b7e567
commit 1871066185
2 changed files with 15 additions and 0 deletions
+14
View File
@@ -0,0 +1,14 @@
// DUMAS nodes are namespaced copies of upstream nodes. Remove copied
// upstream aux_id metadata because it is invalid for the namespaced node.
function sanitizeDumasMetadata(node) {
if (!node || typeof node.type !== "string" || !node.type.startsWith("Dumas")) return;
const properties = node.properties;
if (!properties || !Object.prototype.hasOwnProperty.call(properties, "aux_id")) return;
delete properties.aux_id;
}
app.registerExtension({
name: "DumasNodes.WorkflowMetadata",
nodeCreated: sanitizeDumasMetadata,
loadedGraphNode: sanitizeDumasMetadata,
});