diff --git a/packages/bruno-app/src/providers/ReduxStore/slices/collections/actions.js b/packages/bruno-app/src/providers/ReduxStore/slices/collections/actions.js index 4e0a7724..cfede2a4 100644 --- a/packages/bruno-app/src/providers/ReduxStore/slices/collections/actions.js +++ b/packages/bruno-app/src/providers/ReduxStore/slices/collections/actions.js @@ -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())