feat(ui): improve image delete handling

This commit is contained in:
psychedelicious
2023-05-26 14:31:32 +10:00
parent 0d5f44b153
commit 6059db4f15
5 changed files with 63 additions and 35 deletions

View File

@@ -67,9 +67,6 @@ export const imageDeleted = createAppAsyncThunk(
'api/imageDeleted',
async (arg: ImageDeletedArg) => {
const response = await ImagesService.deleteImage(arg);
imagesLog.debug({ arg, response }, 'Image deleted');
return response;
}
);
@@ -77,7 +74,7 @@ export const imageDeleted = createAppAsyncThunk(
type ImageUpdatedArg = Parameters<(typeof ImagesService)['updateImage']>[0];
/**
* `ImagesService.deleteImage()` thunk
* `ImagesService.updateImage()` thunk
*/
export const imageUpdated = createAppAsyncThunk(
'api/imageUpdated',