Listview "Order by" should not contain removed properties

This commit is contained in:
Kenn Jacobsen
2020-05-25 15:01:44 +02:00
committed by Sebastiaan Janssen
parent fe12f35d79
commit b28bb9bb94

View File

@@ -53,10 +53,9 @@ function includePropsPreValsController($rootScope, $scope, localizationService,
$scope.errorMsg = "";
}
$scope.removeField = function(e) {
$scope.model.value = _.reject($scope.model.value, function (x) {
return x.alias === e.alias;
});
$scope.removeField = function (e) {
var index = $scope.model.value.indexOf(e);
$scope.model.value.splice(index, 1);
}
//now we'll localize these strings, for some reason the directive doesn't work inside of the select group with an ng-model declared