Change to auto EoL and fix property missing from assignment of hires fix

This commit is contained in:
blhook 2023-03-02 18:27:44 -08:00
parent fd722ddf7d
commit ad16581ab8
4 changed files with 7 additions and 6 deletions

View File

@ -1,7 +1,7 @@
module.exports = { module.exports = {
trailingComma: 'es5', trailingComma: 'es5',
tabWidth: 2, tabWidth: 2,
endOfLine: 'crlf', endOfLine: 'auto',
semi: true, semi: true,
singleQuote: true, singleQuote: true,
overrides: [ overrides: [

File diff suppressed because one or more lines are too long

View File

@ -5,7 +5,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>InvokeAI - A Stable Diffusion Toolkit</title> <title>InvokeAI - A Stable Diffusion Toolkit</title>
<link rel="shortcut icon" type="icon" href="./assets/favicon-0d253ced.ico" /> <link rel="shortcut icon" type="icon" href="./assets/favicon-0d253ced.ico" />
<script type="module" crossorigin src="./assets/index-6dcf2dc0.js"></script> <script type="module" crossorigin src="./assets/index-720872d1.js"></script>
<link rel="stylesheet" href="./assets/index-14cb2922.css"> <link rel="stylesheet" href="./assets/index-14cb2922.css">
</head> </head>

View File

@ -47,9 +47,10 @@ export const postprocessingSlice = createSlice({
) => { ) => {
const { type, hires_fix } = action.payload.image; const { type, hires_fix } = action.payload.image;
if (type === 'txt2img' && typeof hires_fix === 'boolean') if (type === 'txt2img') {
state.hiresFix = hires_fix; state.hiresFix = Boolean(hires_fix);
// Strength of img2img used in hires_fix is not currently exposed in the Metadata for the final image. // Strength of img2img used in hires_fix is not currently exposed in the Metadata for the final image.
}
}, },
setFacetoolStrength: (state, action: PayloadAction<number>) => { setFacetoolStrength: (state, action: PayloadAction<number>) => {
state.facetoolStrength = action.payload; state.facetoolStrength = action.payload;