From 72c683aaca00c748150baa65b8c617b1fe0437ad Mon Sep 17 00:00:00 2001 From: Jakob Borg Date: Wed, 16 Aug 2023 11:51:45 +0200 Subject: [PATCH] gui: Fix inadvertently always-false comparison (ref #7726) --- gui/default/syncthing/core/syncthingController.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gui/default/syncthing/core/syncthingController.js b/gui/default/syncthing/core/syncthingController.js index 4163d020a..6e93b507c 100755 --- a/gui/default/syncthing/core/syncthingController.js +++ b/gui/default/syncthing/core/syncthingController.js @@ -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];