Skip to content

Commit

Permalink
chore: pr #465 polish
Browse files Browse the repository at this point in the history
  • Loading branch information
helloanoop committed Oct 18, 2023
1 parent 31c4d7e commit f08871d
Showing 1 changed file with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,6 @@ export const cancelRequest = (cancelTokenUid, item, collection) => (dispatch) =>
.catch((err) => console.log(err));
};


export const runCollectionFolder = (collectionUid, folderUid, recursive) => (dispatch, getState) => {
const state = getState();
const collection = findCollectionByUid(state.collections.collections, collectionUid);
Expand Down Expand Up @@ -386,8 +385,7 @@ export const deleteItem = (itemUid, collectionUid) => (dispatch, getState) => {
ipcRenderer
.invoke('renderer:delete-item', item.pathname, item.type)
.then(() => {
dispatch(_deleteItem({ itemUid, collectionUid }))
resolve()
resolve();
})
.catch((error) => reject(error));
}
Expand All @@ -396,8 +394,8 @@ export const deleteItem = (itemUid, collectionUid) => (dispatch, getState) => {
};

export const sortCollections = () => (dispatch) => {
dispatch(_sortCollections())
}
dispatch(_sortCollections());
};
export const moveItem = (collectionUid, draggedItemUid, targetItemUid) => (dispatch, getState) => {
const state = getState();
const collection = findCollectionByUid(state.collections.collections, collectionUid);
Expand Down

0 comments on commit f08871d

Please sign in to comment.