mobile: clear selection after deleting items

This commit is contained in:
Ammar Ahmed
2024-02-23 03:40:36 +05:00
committed by Abdullah Atta
parent 8de57a1b5d
commit 513b4016b9

View File

@@ -306,7 +306,10 @@ export const SelectionHeader = React.memo(
deleteItems(
undefined,
useSelectionStore.getState().selectionMode
);
).then(() => {
useSelectionStore.getState().clearSelection();
useSelectionStore.getState().setSelectionMode(undefined);
});
}}
tooltipText="Move to trash"
tooltipPosition={1}