fix: Fixed an issue where the ID of nodes registered only in the CNR could not be properly resolved.

https://github.com/ltdrdata/ComfyUI-Manager/issues/1376
This commit is contained in:
Dr.Lt.Data
2024-12-29 08:10:59 +09:00
parent 806fdd721d
commit 890ba0f818
3 changed files with 5 additions and 2 deletions

View File

@@ -1522,6 +1522,9 @@ export class CustomNodesManager {
for (const k in node_packs) {
let item = node_packs[k];
item.originalData = JSON.parse(JSON.stringify(item));
if(item.originalData.id == undefined) {
item.originalData.id = k;
}
item.hash = md5(k);
}