Skip to content

Commit ca5a4ee

Browse files
fix(ui): few cases where board totals don't updated when moving
1 parent 4fdefe5 commit ca5a4ee

File tree

1 file changed

+12
-0
lines changed
  • invokeai/frontend/web/src/services/api/endpoints

1 file changed

+12
-0
lines changed

invokeai/frontend/web/src/services/api/endpoints/images.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -382,6 +382,10 @@ export const imagesApi = api.injectEndpoints({
382382
type: 'BoardImagesTotal',
383383
id: imageDTO.board_id ?? 'none',
384384
},
385+
{
386+
type: 'BoardImagesTotal',
387+
id: board_id,
388+
},
385389
];
386390
},
387391
}),
@@ -454,6 +458,10 @@ export const imagesApi = api.injectEndpoints({
454458
}),
455459
});
456460
tags.push({ type: 'Board', id: imageDTOs[0].board_id ?? 'none' });
461+
tags.push({
462+
type: 'BoardImagesTotal',
463+
id: imageDTOs[0].board_id ?? 'none',
464+
});
457465
}
458466
for (const imageDTO of imageDTOs) {
459467
tags.push({ type: 'Image', id: imageDTO.image_name });
@@ -498,6 +506,10 @@ export const imagesApi = api.injectEndpoints({
498506
categories: getCategories(imageDTOs[0]),
499507
}),
500508
});
509+
tags.push({
510+
type: 'BoardImagesTotal',
511+
id: 'none',
512+
});
501513
}
502514

503515
result?.removed_image_names.forEach((image_name) => {

0 commit comments

Comments
 (0)