fix(ui): denoise percentage

This commit is contained in:
psychedelicious 2024-04-01 18:21:15 +11:00
parent 8b5caa7e57
commit a1d68eb319

View File

@ -97,7 +97,7 @@ export const systemSlice = createSlice({
* Generator Progress * Generator Progress
*/ */
builder.addCase(socketGeneratorProgress, (state, action) => { builder.addCase(socketGeneratorProgress, (state, action) => {
const { step, total_steps, progress_image, session_id, batch_id } = action.payload.data; const { step, total_steps, progress_image, session_id, batch_id, percentage } = action.payload.data;
if (state.cancellations.includes(session_id)) { if (state.cancellations.includes(session_id)) {
// Do not update the progress if this session has been cancelled. This prevents a race condition where we get a // Do not update the progress if this session has been cancelled. This prevents a race condition where we get a
@ -108,7 +108,7 @@ export const systemSlice = createSlice({
state.denoiseProgress = { state.denoiseProgress = {
step, step,
total_steps, total_steps,
percentage: step / total_steps, percentage,
progress_image, progress_image,
session_id, session_id,
batch_id, batch_id,