Skip to content

The most powerful and modular diffusion model GUI, api and backend with a graph/nodes interface. The fastest local inference engine in the world.

Fix logging not checking onChange

pythongosssss23687da9a94f
diff --git a/web/scripts/logging.js b/web/scripts/logging.js
index c73462e1e..875dd970b 100644
--- a/web/scripts/logging.js
+++ b/web/scripts/logging.js
@@ -269,6 +269,9 @@ export class ComfyLogging {
id: settingId,
name: settingId,
defaultValue: true,
+ onChange: (value) => {
+ this.enabled = value;
+ },
type: (name, setter, value) => {
return $el("tr", [
$el("td", [
@@ -283,7 +286,7 @@ export class ComfyLogging {
type: "checkbox",
checked: value,
onchange: (event) => {
- setter((this.enabled = event.target.checked));
+ setter(event.target.checked);
},
}),
$el("button", {