Fix bypass display issue (#144)

* Fix bypass display issue

* nit

* Update test expectations [skip ci]

---------

Co-authored-by: github-actions <github-actions@github.com>
This commit is contained in:
Chenlei Hu
2024-07-17 17:27:24 -04:00
committed by GitHub
parent 6b2acc146d
commit 31f4ee332a
6 changed files with 10 additions and 10 deletions

View File

@@ -1547,11 +1547,13 @@ export class ComfyApp {
this.editor_alpha = 0.4;
}
// Mode never equals 4 by ts check.
// if (node.mode === 4) { // never
// node.bgcolor = "#FF00FF";
// this.editor_alpha = 0.2;
// }
// ComfyUI's custom node mode enum value 4 => bypass/never.
// @ts-ignore
if (node.mode === 4) {
// never
node.bgcolor = "#FF00FF";
this.editor_alpha = 0.2;
}
const adjustColor = (color?: string) => {
return color ? lightenColor(color, 0.5) : color;