mirror of
https://github.com/usebruno/bruno.git
synced 2024-11-23 00:13:24 +01:00
fix: folder showing after deleting
This commit is contained in:
parent
e83c2da798
commit
ce9cdc5293
@ -339,11 +339,10 @@ 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