mirror of
https://github.com/Comfy-Org/ComfyUI-Manager.git
synced 2025-12-21 20:30:48 +08:00
fix: should not be displayed switch button if unknown node
This commit is contained in:
parent
ea3413be9b
commit
0b6f7962a4
@ -636,13 +636,9 @@ export class CustomNodesManager {
|
|||||||
installGroups.enabled = installGroups.enabled.filter(it => it !== "disable");
|
installGroups.enabled = installGroups.enabled.filter(it => it !== "disable");
|
||||||
}
|
}
|
||||||
|
|
||||||
if (rowItem?.version === "unknown") {
|
|
||||||
installGroups.enabled = installGroups.enabled.filter(it => it !== "switch");
|
|
||||||
}
|
|
||||||
|
|
||||||
let list = installGroups[action];
|
let list = installGroups[action];
|
||||||
|
|
||||||
if(is_selected_button) {
|
if(is_selected_button || rowItem?.version === "unknown") {
|
||||||
list = list.filter(it => it !== "switch");
|
list = list.filter(it => it !== "switch");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user