Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

Preserve albumId when closing album created toast

Anand Baburajan25c7ad072357
diff --git a/web/apps/photos/src/components/Collections/AllAlbums.tsx b/web/apps/photos/src/components/Collections/AllAlbums.tsx
index 76b8da9496..c9c598725c 100644
--- a/web/apps/photos/src/components/Collections/AllAlbums.tsx
+++ b/web/apps/photos/src/components/Collections/AllAlbums.tsx
@@ -212,14 +212,20 @@ export const AllAlbums: React.FC<AllAlbums> = ({
albumCreatedToast.albumId,
);
}
- setAlbumCreatedToast({ open: false });
+ setAlbumCreatedToast((prev) => ({
+ ...prev,
+ open: false,
+ }));
}}
>
<ArrowForwardIcon />
</FilledIconButton>
<FilledIconButton
onClick={() =>
- setAlbumCreatedToast({ open: false })
+ setAlbumCreatedToast((prev) => ({
+ ...prev,
+ open: false,
+ }))
}
>
<CloseIcon />