fix(ui): fix canvas staging area

Missed some of the `imageUpdated` stuff
This commit is contained in:
psychedelicious
2023-06-24 11:26:08 +10:00
parent bab3a9504e
commit a6c615a98c
4 changed files with 12 additions and 11 deletions

View File

@ -175,7 +175,11 @@ const IAICanvasStagingAreaToolbar = () => {
aria-label={t('unifiedCanvas.saveToGallery')}
icon={<FaSave />}
onClick={() =>
dispatch(stagingAreaImageSaved(currentStagingAreaImage.image))
dispatch(
stagingAreaImageSaved({
imageName: currentStagingAreaImage.imageName,
})
)
}
colorScheme="accent"
/>

View File

@ -1,5 +1,4 @@
import { createAction } from '@reduxjs/toolkit';
import { ImageDTO } from 'services/api/types';
export const canvasSavedToGallery = createAction('canvas/canvasSavedToGallery');
@ -13,6 +12,6 @@ export const canvasDownloadedAsImage = createAction(
export const canvasMerged = createAction('canvas/canvasMerged');
export const stagingAreaImageSaved = createAction<ImageDTO>(
export const stagingAreaImageSaved = createAction<{ imageName: string }>(
'canvas/stagingAreaImageSaved'
);