Skip to content

Commit

Permalink
fix: close bulk album actions after submit
Browse files Browse the repository at this point in the history
  • Loading branch information
Pitu committed May 29, 2024
1 parent 299301e commit 7009afa
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -233,6 +233,7 @@ export const BulkAlbumActions = ({
}

toast.success('Changes saved successfully');
setOpen(false);
}, [addedAlbums, compareChanges, removedAlbums]);

useEffect(() => {
Expand All @@ -248,6 +249,12 @@ export const BulkAlbumActions = ({
return () => {
setReady(false);
setIsDirty(false);
setAllFiles([]);
setAllFilesOriginal([]);
setAllAlbums([]);
setSelectedAlbums([]);
setAddedAlbums({});
setRemovedAlbums({});
};
}, [open, fetchAllAlbums, getUsedAlbums]);

Expand Down

0 comments on commit 7009afa

Please sign in to comment.