This commit is contained in:
Jack Scotson 2023-10-15 10:25:35 +01:00
parent 211f941b9f
commit 074cbf0c03

View File

@ -288,9 +288,7 @@ export const renameItem = (newName, itemUid, collectionUid) => (dispatch, getSta
} }
const { ipcRenderer } = window; const { ipcRenderer } = window;
ipcRenderer.invoke('renderer:rename-item', item.pathname, newPathname, newName).then(() => { ipcRenderer.invoke('renderer:rename-item', item.pathname, newPathname, newName).then(resolve).catch(reject);
resolve()
}).catch(reject);
}); });
}; };