mirror of
https://git.datalinker.icu/ltdrdata/ComfyUI-Manager
synced 2025-12-11 07:04:23 +08:00
Fix node version metadata (#1432)
This commit is contained in:
parent
4dffb5d593
commit
d3fa87fd94
@ -53,7 +53,9 @@ class WorkflowMetadataExtension {
|
|||||||
const nodeInfo =
|
const nodeInfo =
|
||||||
this.installedNodes[nodePackageName] ??
|
this.installedNodes[nodePackageName] ??
|
||||||
this.installedNodes[nodePackageName.toLowerCase()];
|
this.installedNodes[nodePackageName.toLowerCase()];
|
||||||
nodeVersions[nodePackageName] = nodeInfo.ver;
|
if (nodeInfo) {
|
||||||
|
nodeVersions[nodePackageName] = nodeInfo.ver;
|
||||||
|
}
|
||||||
} else if (["nodes", "comfy_extras"].includes(modules[0])) {
|
} else if (["nodes", "comfy_extras"].includes(modules[0])) {
|
||||||
nodeVersions["comfy-core"] = this.comfyCoreVersion;
|
nodeVersions["comfy-core"] = this.comfyCoreVersion;
|
||||||
} else {
|
} else {
|
||||||
@ -78,7 +80,11 @@ class WorkflowMetadataExtension {
|
|||||||
workflow.extra = {};
|
workflow.extra = {};
|
||||||
}
|
}
|
||||||
const graph = this;
|
const graph = this;
|
||||||
workflow.extra["node_versions"] = extension.getGraphNodeVersions(graph);
|
try {
|
||||||
|
workflow.extra["node_versions"] = extension.getGraphNodeVersions(graph);
|
||||||
|
} catch (e) {
|
||||||
|
console.error(e);
|
||||||
|
}
|
||||||
|
|
||||||
return workflow;
|
return workflow;
|
||||||
};
|
};
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user