diff --git a/invokeai/frontend/src/features/parameters/store/generationSlice.ts b/invokeai/frontend/src/features/parameters/store/generationSlice.ts index 47790277c2..16960f4397 100644 --- a/invokeai/frontend/src/features/parameters/store/generationSlice.ts +++ b/invokeai/frontend/src/features/parameters/store/generationSlice.ts @@ -276,8 +276,13 @@ export const generationSlice = createSlice({ } else { state.threshold = threshold; } - if (perlin) state.perlin = perlin; - if (typeof perlin === 'undefined') state.perlin = 0; + if (typeof perlin === 'undefined') { + state.perlin = perlin; + } + else + { + state.perlin = 0; + } if (typeof seamless === 'boolean') state.seamless = seamless; // if (typeof hires_fix === 'boolean') state.hiresFix = hires_fix; // TODO: Needs to be fixed after reorg if (width) state.width = width;