SwarmUI icon indicating copy to clipboard operation
SwarmUI copied to clipboard

Default preset settings/parameter defaults will not apply to parameters which have their values filled at backend load

Open Quaggles opened this issue 4 months ago • 0 comments

Expected Behavior

Parameter defaults and default preset overrides should be applied after the backends load if the value is in the dropdown at the time.

Actual Behavior

If you load the page while backends are loading parameters pick the first value in the dropdown at that moment, this is not fixed when the backend finishes loading though you can apply it by manually running "Reset Params to Defaults"

Steps to Reproduce

  1. Create a default preset overriding the ControlNet Preprocessor parameter with a value, this parameter has this issue as it starts with the value "None" and gets the rest of its values resolved when the backends load
  2. Reboot the server and load the SwarmUI page before the backend loads, the parameter will default to "None"
  3. When the backend finishes loading the parameter will stay "None" even through the default you picked exists in the updated list

Debug Logs

https://paste.denizenscript.com/View/127226

Other

No response

Quaggles avatar Oct 13 '24 14:10 Quaggles