Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Quaggles opened this issue Oct 13, 2024 · 0 comments
Labels
Bug Something isn't working Frontend This pertains to the frontend UI (HTML/CSS/JS)

Comments

@Quaggles
Copy link
Contributor

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 Quaggles added the Bug Something isn't working label Oct 13, 2024
@mcmonkey4eva mcmonkey4eva added the Frontend This pertains to the frontend UI (HTML/CSS/JS) label Oct 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working Frontend This pertains to the frontend UI (HTML/CSS/JS)
Projects
None yet
Development

No branches or pull requests

2 participants