diff --git a/frontend/src/features/options/store/optionsSlice.ts b/frontend/src/features/options/store/optionsSlice.ts index 65b6858682..042b0e359f 100644 --- a/frontend/src/features/options/store/optionsSlice.ts +++ b/frontend/src/features/options/store/optionsSlice.ts @@ -236,8 +236,11 @@ export const optionsSlice = createSlice({ if (sampler) state.sampler = sampler; if (steps) state.steps = steps; if (cfg_scale) state.cfgScale = cfg_scale; - if (threshold) state.threshold = threshold; - if (typeof threshold === 'undefined') state.threshold = 0; + if (typeof threshold === 'undefined') { + state.threshold = 0; + } else { + state.threshold = threshold; + } if (perlin) state.perlin = perlin; if (typeof perlin === 'undefined') state.perlin = 0; if (typeof seamless === 'boolean') state.seamless = seamless;