gui: Fix lastSeenDays error due to undefined deviceStats when adding new devices (ref #8730) (#9066)
This commit is contained in:
parent
03590e5ac7
commit
325b3b114f
|
@ -1090,7 +1090,7 @@ angular.module('syncthing.core')
|
|||
}
|
||||
|
||||
// Disconnected
|
||||
if (!unused && $scope.deviceStats[deviceCfg.deviceID].lastSeenDays && $scope.deviceStats[deviceCfg.deviceID].lastSeenDays >= 7) {
|
||||
if (!unused && $scope.deviceStats[deviceCfg.deviceID] && $scope.deviceStats[deviceCfg.deviceID].lastSeenDays && $scope.deviceStats[deviceCfg.deviceID].lastSeenDays >= 7) {
|
||||
return status + 'disconnected-inactive';
|
||||
} else {
|
||||
return status + 'disconnected';
|
||||
|
|
Loading…
Reference in New Issue