Commit fad4875f by Torkel Ödegaard

Merge pull request #3436 from utkarshcmu/templating

Removed if condition to fix 3370
parents d68e1fd3 b6044910
...@@ -156,7 +156,7 @@ function (angular, _, coreModule) { ...@@ -156,7 +156,7 @@ function (angular, _, coreModule) {
vm.selectionsChanged = function(commitChange) { vm.selectionsChanged = function(commitChange) {
vm.selectedValues = _.filter(vm.options, {selected: true}); vm.selectedValues = _.filter(vm.options, {selected: true});
if (vm.selectedValues.length > 1 && vm.selectedValues.length !== vm.options.length) { if (vm.selectedValues.length > 1) {
if (vm.selectedValues[0].text === 'All') { if (vm.selectedValues[0].text === 'All') {
vm.selectedValues[0].selected = false; vm.selectedValues[0].selected = false;
vm.selectedValues = vm.selectedValues.slice(1, vm.selectedValues.length); vm.selectedValues = vm.selectedValues.slice(1, vm.selectedValues.length);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment