Strip tags from top-level nodes when inserting templates

This commit is contained in:
space-nuko
2023-05-26 16:06:54 -05:00
parent eb335e9be7
commit 60bd989915
4 changed files with 23 additions and 3 deletions

View File

@@ -249,6 +249,11 @@ export default class ComfyGraph extends LGraph {
node_data.id = uuidv4();
templateNodeIDToNewNode[prevNodeId] = node
// Strip tags from top-level nodes
if (Array.isArray(node_data.properties.tags)) {
node_data.properties.tags = []
}
node.configure(node_data);
if (mapping) {