forked from extern/bruno
Revert "fix: folder showing after deleting"
This reverts commit ce9cdc5293
.
This commit is contained in:
parent
ce9cdc5293
commit
cedcd2cf35
@ -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())
|
||||
|
Loading…
Reference in New Issue
Block a user