removed promise from clone collection action

This commit is contained in:
Akshat Khosya 2023-12-16 23:19:17 +05:30
parent a15a4e4a2d
commit b8451d01ca

View File

@ -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) => {