gui: Fix inadvertently always-false comparison (ref #7726)

This commit is contained in:
Jakob Borg 2023-08-16 11:51:45 +02:00
parent 8042bd1a54
commit 72c683aaca
1 changed files with 1 additions and 1 deletions

View File

@ -2877,7 +2877,7 @@ angular.module('syncthing.core')
};
$scope.hasReceiveOnlyChanged = function (folderCfg) {
if (!folderCfg || folderCfg.type !== ["receiveonly", "receiveencrypted"].indexOf(folderCfg.type) === -1) {
if (!folderCfg || ["receiveonly", "receiveencrypted"].indexOf(folderCfg.type) === -1) {
return false;
}
var counts = $scope.model[folderCfg.id];