fix issue with upsclaing checkbox

This commit is contained in:
caranicas 2022-09-14 16:49:27 -04:00
parent 62842968cb
commit 445959abbd
2 changed files with 4 additions and 1 deletions

View File

@ -112,6 +112,9 @@ function SettingsList() {
name="upscale_model"
disabled={!isUsingUpscaling}
value={use_upscale}
onChange={(e) => {
setRequestOption("use_upscale", e.target.value);
}}
>
<option value="RealESRGAN_x4plus">RealESRGAN_x4plus</option>
<option value="RealESRGAN_x4plus_anime_6B">

View File

@ -239,7 +239,7 @@ export const useImageCreate = create<ImageCreateState>(
state.requestOptions.use_upscale = state.uiOptions
.isCheckedUseUpscaling
? "RealESRGAN_x4plus"
: null;
: undefined;
localStorage.setItem(
"ui:isCheckedUseUpscaling",
state.uiOptions.isCheckedUseUpscaling