From bcb4e9c49563e5940acc6fc0c1f1128cc2b088bf Mon Sep 17 00:00:00 2001 From: Victor Woeltjen Date: Tue, 16 Jun 2015 15:40:19 -0700 Subject: [PATCH] [Addressability] Remove excessive check Remove unneeded check from ViewSwitcherController; not necessary to avoid overwriting query string selection of view. WTD-1149. --- .../commonUI/general/src/controllers/ViewSwitcherController.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platform/commonUI/general/src/controllers/ViewSwitcherController.js b/platform/commonUI/general/src/controllers/ViewSwitcherController.js index 3bf14d8640..69674013d5 100644 --- a/platform/commonUI/general/src/controllers/ViewSwitcherController.js +++ b/platform/commonUI/general/src/controllers/ViewSwitcherController.js @@ -53,7 +53,7 @@ define( // Get list of views, read from capability function updateOptions(views) { - if (Array.isArray(views) && !($scope.ngModel || {}).selected) { + if (Array.isArray(views)) { $timeout(function () { $scope.ngModel.selected = findMatchingOption( views,