Revert "fix: folder showing after deleting"

This reverts commit ce9cdc5293.
This commit is contained in:
Beedhan 2023-10-02 00:00:03 +05:45
parent ce9cdc5293
commit cedcd2cf35

View File

@ -339,10 +339,11 @@ export const deleteItem = (itemUid, collectionUid) => (dispatch, getState) => {
if (!collection) {
return reject(new Error('Collection not found'));
}
const item = findItemInCollection(collection, itemUid);
if (item) {
const { ipcRenderer } = window;
dispatch(_deleteItem({ itemUid, collectionUid }));
ipcRenderer
.invoke('renderer:delete-item', item.pathname, item.type)
.then(() => resolve())