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 8143cbc04..08e982c05 100644 --- a/packages/bruno-app/src/providers/ReduxStore/slices/collections/actions.js +++ b/packages/bruno-app/src/providers/ReduxStore/slices/collections/actions.js @@ -414,6 +414,15 @@ export const cloneItem = (newName, itemUid, collectionUid) => (dispatch, getStat .then(() => ipcRenderer.invoke('renderer:new-request', fullName, itemToSave)) .then(resolve) .catch(reject); + + dispatch( + insertTaskIntoQueue({ + uid: uuid(), + type: 'OPEN_REQUEST', + collectionUid, + itemPathname: fullName + }) + ); } else { return reject(new Error('Duplicate request names are not allowed under the same folder')); } @@ -434,6 +443,15 @@ export const cloneItem = (newName, itemUid, collectionUid) => (dispatch, getStat .then(() => ipcRenderer.invoke('renderer:new-request', fullName, itemToSave)) .then(resolve) .catch(reject); + + dispatch( + insertTaskIntoQueue({ + uid: uuid(), + type: 'OPEN_REQUEST', + collectionUid, + itemPathname: fullName + }) + ); } else { return reject(new Error('Duplicate request names are not allowed under the same folder')); }