Skip to content

Commit

Permalink
removed promise from clone collection action
Browse files Browse the repository at this point in the history
  • Loading branch information
akshat-khosya committed Dec 16, 2023
1 parent a15a4e4 commit b8451d0
Showing 1 changed file with 7 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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) => {
Expand Down

0 comments on commit b8451d0

Please sign in to comment.