set width and height based on defaultModel if passed in

This commit is contained in:
Mary Hipp 2024-01-16 13:42:51 -05:00 committed by psychedelicious
parent f3fed0b10f
commit 2953dea4a0

View File

@ -242,6 +242,11 @@ export const generationSlice = createSlice({
if (result.success) {
state.model = result.data;
const optimalDimension = getOptimalDimension(result.data);
state.width = optimalDimension;
state.height = optimalDimension;
}
}
});