fix(ui): add default coherence mode to generation slice migration

The valid values for this parameter changed when inpainting changed to gradient denoise. The generation slice's redux migration wasn't updated, resulting in a generation error until you change the setting or reset web UI.
This commit is contained in:
psychedelicious 2024-04-03 08:23:35 +11:00
parent 21b9e96a45
commit 7b93b554d7

View File

@ -280,6 +280,7 @@ const migrateGenerationState = (state: any): GenerationState => {
// The signature of the model has changed, so we need to reset it
state._version = 2;
state.model = null;
state.canvasCoherenceMode = initialGenerationState.canvasCoherenceMode;
}
return state;
};