mirror of
https://github.com/Comfy-Org/ComfyUI-Manager.git
synced 2025-12-16 18:02:58 +08:00
rollback wip code
This commit is contained in:
parent
2449ad5c69
commit
a68330fb8f
@ -1530,23 +1530,6 @@ export class CustomNodesManager {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async getMissingNodes() {
|
async getMissingNodes() {
|
||||||
|
|
||||||
try {
|
|
||||||
let node_versions = app.extensionManager.workflow.activeWorkflow.initialState.extra.node_versions;
|
|
||||||
if(node_versions == undefined) {
|
|
||||||
return getMissingNodesLegacy();
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
|
||||||
catch {
|
|
||||||
customAlert('The legacy method of the missing node feature is used because it is either a legacy workflow or a legacy frontend.');
|
|
||||||
return getMissingNodesLegacy();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
getMissingNodesLegacy() {
|
|
||||||
const mode = manager_instance.datasrc_combo.value;
|
const mode = manager_instance.datasrc_combo.value;
|
||||||
this.showStatus(`Loading missing nodes (${mode}) ...`);
|
this.showStatus(`Loading missing nodes (${mode}) ...`);
|
||||||
const res = await fetchData(`/customnode/getmappings?mode=${mode}`);
|
const res = await fetchData(`/customnode/getmappings?mode=${mode}`);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user