mirror of
https://github.com/nasa/openmct.git
synced 2025-02-21 01:42:31 +00:00
[Autocomplete] Check if indexed filteredOptions is defined
This commit is contained in:
parent
7cdb8db775
commit
98cc19c637
@ -68,7 +68,9 @@ define(
|
||||
}
|
||||
|
||||
function fillInputWithIndexedOption() {
|
||||
$scope.ngModel[$scope.field] = $scope.filteredOptions[$scope.optionIndex].name;
|
||||
if($scope.filteredOptions[$scope.optionIndex]) {
|
||||
$scope.ngModel[$scope.field] = $scope.filteredOptions[$scope.optionIndex].name;
|
||||
}
|
||||
}
|
||||
|
||||
$scope.keyDown = function($event) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user