mirror of
https://github.com/balena-io/etcher.git
synced 2025-07-22 18:56:31 +00:00
Merge pull request #211 from resin-io/fix/length-of-undefined
Fix Cannot read property 'length' of undefined
This commit is contained in:
commit
dfcedffedd
@ -100,7 +100,7 @@ driveScanner.service('DriveScannerService', function($q, $interval, $timeout) {
|
||||
* });
|
||||
*/
|
||||
this.scan = function() {
|
||||
return $q.when(drives.listRemovable()).catch(dialog.showError);
|
||||
return $q.when(drives.listRemovable());
|
||||
};
|
||||
|
||||
/**
|
||||
@ -130,7 +130,7 @@ driveScanner.service('DriveScannerService', function($q, $interval, $timeout) {
|
||||
return self.scan().then(function(drives) {
|
||||
emitter.emit('scan', drives);
|
||||
self.setDrives(drives);
|
||||
});
|
||||
}).catch(dialog.showError);
|
||||
};
|
||||
|
||||
// Make sure any pending interval is cancelled
|
||||
|
Loading…
x
Reference in New Issue
Block a user