Skip to content

Commit 424cee6

Browse files
committed
Merge branch 'main' into release/2.3.0-last-tweaks
2 parents 158d1ef + da193ec commit 424cee6

File tree

5 files changed

+19
-9
lines changed

5 files changed

+19
-9
lines changed

invokeai/frontend/.eslintrc.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ module.exports = {
3131
'space-before-blocks': 'error',
3232
'import/prefer-default-export': 'off',
3333
'@typescript-eslint/no-unused-vars': ['warn', { varsIgnorePattern: '_+' }],
34+
'prettier/prettier': ['error', { endOfLine: 'auto' }],
3435
},
3536
settings: {
3637
react: {

invokeai/frontend/dist/assets/index-8606d352.js renamed to invokeai/frontend/dist/assets/index-252612ad.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

invokeai/frontend/dist/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
66
<title>InvokeAI - A Stable Diffusion Toolkit</title>
77
<link rel="shortcut icon" type="icon" href="./assets/favicon-0d253ced.ico" />
8-
<script type="module" crossorigin src="./assets/index-8606d352.js"></script>
8+
<script type="module" crossorigin src="./assets/index-252612ad.js"></script>
99
<link rel="stylesheet" href="./assets/index-b0bf79f4.css">
1010
</head>
1111

invokeai/frontend/src/features/parameters/store/generationSlice.ts

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -195,8 +195,11 @@ export const generationSlice = createSlice({
195195
} else {
196196
state.threshold = threshold;
197197
}
198-
if (perlin) state.perlin = perlin;
199-
if (typeof perlin === 'undefined') state.perlin = 0;
198+
if (typeof perlin === 'undefined') {
199+
state.perlin = 0;
200+
} else {
201+
state.perlin = perlin;
202+
}
200203
if (typeof seamless === 'boolean') state.seamless = seamless;
201204
// if (typeof hires_fix === 'boolean') state.hiresFix = hires_fix; // TODO: Needs to be fixed after reorg
202205
if (width) state.width = width;
@@ -268,10 +271,16 @@ export const generationSlice = createSlice({
268271
if (sampler) state.sampler = sampler;
269272
if (steps) state.steps = steps;
270273
if (cfg_scale) state.cfgScale = cfg_scale;
271-
if (threshold) state.threshold = threshold;
272-
if (typeof threshold === 'undefined') state.threshold = 0;
273-
if (perlin) state.perlin = perlin;
274-
if (typeof perlin === 'undefined') state.perlin = 0;
274+
if (typeof threshold === 'undefined') {
275+
state.threshold = 0;
276+
} else {
277+
state.threshold = threshold;
278+
}
279+
if (typeof perlin === 'undefined') {
280+
state.perlin = 0;
281+
} else {
282+
state.perlin = perlin;
283+
}
275284
if (typeof seamless === 'boolean') state.seamless = seamless;
276285
// if (typeof hires_fix === 'boolean') state.hiresFix = hires_fix; // TODO: Needs to be fixed after reorg
277286
if (width) state.width = width;

invokeai/frontend/stats.html

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)