Checking if $scope.model.value is an array on the add method.

This commit is contained in:
DESKTOP-6DNOQH9\John
2017-11-02 12:15:04 +00:00
parent 006deb22db
commit 234c0680d8

View File

@@ -86,6 +86,10 @@
};
$scope.add = function ($event) {
if (!angular.isArray($scope.model.value)) {
$scope.model.value = [];
}
if ($scope.newCaption == "") {
$scope.hasError = true;
} else {