revert: getModels to receivedModels

This commit is contained in:
blessedcoolant
2023-06-18 19:35:46 +12:00
committed by psychedelicious
parent 6bdf68dd4c
commit e48528bbef
6 changed files with 15 additions and 15 deletions

View File

@ -5,7 +5,7 @@ import { configChanged } from 'features/system/store/configSlice';
import { clamp, sortBy } from 'lodash-es';
import { ImageDTO } from 'services/api';
import { imageUrlsReceived } from 'services/thunks/image';
import { getModels } from 'services/thunks/model';
import { receivedModels } from 'services/thunks/model';
import {
CfgScaleParam,
HeightParam,
@ -225,7 +225,7 @@ export const generationSlice = createSlice({
},
},
extraReducers: (builder) => {
builder.addCase(getModels.fulfilled, (state, action) => {
builder.addCase(receivedModels.fulfilled, (state, action) => {
if (!state.model) {
const firstModel = sortBy(action.payload, 'name')[0];
state.model = firstModel.name;