mirror of
https://github.com/nasa/openmct.git
synced 2025-05-02 08:43:17 +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() {
|
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) {
|
$scope.keyDown = function($event) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user