Maintain reference to querySet rather than cloning so that changes made after initialization will propagate

This commit is contained in:
mabashian
2018-06-11 11:56:33 -04:00
parent fbafb9a5bf
commit 6794afb284

View File

@@ -40,7 +40,7 @@ function SmartSearchController (
} }
if ($scope.querySet) { if ($scope.querySet) {
queryset = _.cloneDeep($scope.querySet); queryset = $scope.querySet;
} else { } else {
queryset = $state.params[searchKey]; queryset = $state.params[searchKey];
} }