From ea8fd240b576334a64da56b195702e926b236642 Mon Sep 17 00:00:00 2001 From: abhinav-grd Date: Mon, 27 Sep 2021 09:26:01 +0530 Subject: [PATCH] moves out clearSelection and syncWithRemote to caller --- src/utils/collection/index.ts | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/utils/collection/index.ts b/src/utils/collection/index.ts index 1c13c40c1..2683236a5 100644 --- a/src/utils/collection/index.ts +++ b/src/utils/collection/index.ts @@ -21,8 +21,6 @@ export async function copyOrMoveFromCollection( setCollectionSelectorView: (value: boolean) => void, selected: SelectedState, files: File[], - clearSelection: () => void, - syncWithRemote: () => Promise, setActiveCollection: (id: number) => void, collectionName: string, existingCollection: Collection @@ -52,8 +50,6 @@ export async function copyOrMoveFromCollection( default: throw Error(CustomError.INVALID_COLLECTION_OPERATION); } - clearSelection(); - await syncWithRemote(); setActiveCollection(collection.id); }