refactor(web): asset select actions (#2444)

* refactor(web): asset select actions

* remaining pages/components + data flow changes

* fix check
This commit is contained in:
Michel Heusschen 2023-05-16 16:13:20 +02:00 committed by GitHub
parent 3ec74444b0
commit ab86d0a18d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
21 changed files with 646 additions and 919 deletions

View file

@ -25,7 +25,7 @@ export const addAssetsToAlbum = async (
export async function bulkDownload(
fileName: string,
assets: AssetResponseDto[],
onDone: () => void,
onDone?: () => void,
key?: string
) {
const assetIds = assets.map((asset) => asset.id);
@ -63,7 +63,7 @@ export async function bulkDownload(
if (isNotComplete && fileCount > 0) {
// skip += fileCount;
} else {
onDone();
onDone?.();
done = true;
}