diff --git a/src/renderer/ipc/MountsIPC.js b/src/renderer/ipc/MountsIPC.js index 8cd5b37..1767bc6 100644 --- a/src/renderer/ipc/MountsIPC.js +++ b/src/renderer/ipc/MountsIPC.js @@ -134,11 +134,11 @@ const addListeners = (ipcMain, {setTrayImage, standardIPCReply}) => { } }; - const setImage = (locations) => { + const setImage = locations => { let driveInUse; if (Object.keys(locations).length > 0) { for (const provider of providerList) { - driveInUse = locations[provider].length > 0; + driveInUse = locations[provider] && locations[provider].length > 0; if (driveInUse) break; }