Fix empty location for missing provider
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user