From b8451d01ca179d299709fe24cc6771b9497048ea Mon Sep 17 00:00:00 2001 From: Akshat Khosya Date: Sat, 16 Dec 2023 23:19:17 +0530 Subject: [PATCH] removed promise from clone collection action --- .../ReduxStore/slices/collections/actions.js | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) 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 1a38b77c88..9c799c2346 100644 --- a/packages/bruno-app/src/providers/ReduxStore/slices/collections/actions.js +++ b/packages/bruno-app/src/providers/ReduxStore/slices/collections/actions.js @@ -942,15 +942,13 @@ export const createCollection = (collectionName, collectionFolderName, collectio export const cloneCollection = (collectionName, collectionFolderName, collectionLocation, perviousPath) => () => { const { ipcRenderer } = window; - return new Promise((resolve, reject) => { - ipcRenderer.invoke( - 'renderer:clone-collection', - collectionName, - collectionFolderName, - collectionLocation, - perviousPath - ); - }); + return ipcRenderer.invoke( + 'renderer:clone-collection', + collectionName, + collectionFolderName, + collectionLocation, + perviousPath + ); }; export const openCollection = () => () => { return new Promise((resolve, reject) => {