mirror of
https://github.com/usebruno/bruno.git
synced 2024-12-01 12:24:29 +01:00
removed promise from clone collection action
This commit is contained in:
parent
a15a4e4a2d
commit
b8451d01ca
@ -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) => {
|
||||||
|
Loading…
Reference in New Issue
Block a user