mirror of
https://git.datalinker.icu/ltdrdata/ComfyUI-Manager
synced 2026-05-23 22:11:21 +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…
x
Reference in New Issue
Block a user