mirror of
https://github.com/octoleo/syncthing.git
synced 2024-11-10 07:11:08 +00:00
The current code assumes that lastSeenDays is always set which is not the case when device reports its lastSeen as equal to the Unix epoch. Thus, make sure that lastSeenDays is set before proceeding with the disconnected-inactive status check to avoid JS errors in the browser. Signed-off-by: Tomasz Wilczyński <twilczynski@naver.com>
This commit is contained in:
parent
473ca68dc4
commit
fb4209e382
@ -1098,7 +1098,7 @@ angular.module('syncthing.core')
|
||||
}
|
||||
|
||||
// Disconnected
|
||||
if (!unused && $scope.deviceStats[deviceCfg.deviceID].lastSeenDays >= 7) {
|
||||
if (!unused && $scope.deviceStats[deviceCfg.deviceID].lastSeenDays && $scope.deviceStats[deviceCfg.deviceID].lastSeenDays >= 7) {
|
||||
return status + 'disconnected-inactive';
|
||||
} else {
|
||||
return status + 'disconnected';
|
||||
|
Loading…
Reference in New Issue
Block a user