mirror of
https://github.com/usebruno/bruno.git
synced 2024-11-26 18:03:27 +01:00
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) {
|
if (!collection) {
|
||||||
return reject(new Error('Collection not found'));
|
return reject(new Error('Collection not found'));
|
||||||
}
|
}
|
||||||
|
|
||||||
const item = findItemInCollection(collection, itemUid);
|
const item = findItemInCollection(collection, itemUid);
|
||||||
if (item) {
|
if (item) {
|
||||||
const { ipcRenderer } = window;
|
const { ipcRenderer } = window;
|
||||||
dispatch(_deleteItem({ itemUid, collectionUid }));
|
|
||||||
ipcRenderer
|
ipcRenderer
|
||||||
.invoke('renderer:delete-item', item.pathname, item.type)
|
.invoke('renderer:delete-item', item.pathname, item.type)
|
||||||
.then(() => resolve())
|
.then(() => resolve())
|
||||||
|
Loading…
Reference in New Issue
Block a user