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) => () => { export const cloneCollection = (collectionName, collectionFolderName, collectionLocation, perviousPath) => () => {
const { ipcRenderer } = window; const { ipcRenderer } = window;
return new Promise((resolve, reject) => { return ipcRenderer.invoke(
ipcRenderer.invoke(
'renderer:clone-collection', 'renderer:clone-collection',
collectionName, collectionName,
collectionFolderName, collectionFolderName,
collectionLocation, collectionLocation,
perviousPath perviousPath
); );
});
}; };
export const openCollection = () => () => { export const openCollection = () => () => {
return new Promise((resolve, reject) => { return new Promise((resolve, reject) => {