diff --git a/gui/scripts/syncthing/core/controllers/syncthingController.js b/gui/scripts/syncthing/core/controllers/syncthingController.js index 2aa50e584..1256c951e 100644 --- a/gui/scripts/syncthing/core/controllers/syncthingController.js +++ b/gui/scripts/syncthing/core/controllers/syncthingController.js @@ -521,6 +521,11 @@ angular.module('syncthing.core') if ($scope.model[folderCfg.id].state == 'error') { return 'stopped'; // legacy, the state is called "stopped" in the GUI } + + // after restart syncthing process state may be empty + if (!$scope.model[folderCfg.id].state) { + return 'unknown'; + } return '' + $scope.model[folderCfg.id].state; };