mirror of
https://github.com/nasa/openmct.git
synced 2025-04-06 02:46:48 +00:00
[Search] Fixed excessive calls to setSelection
There were excessive calls to TreeNodeController's setSelection() due to a modification for search compatibility. Changed to not call as often.
This commit is contained in:
parent
52a9fcf5d6
commit
aa17d3034e
@ -171,10 +171,7 @@ define(
|
||||
// If this object is the same as the model's selected object
|
||||
// Same being them having the same ID (this allows different
|
||||
// instances of the same thing to be recognized as the same)
|
||||
if ($scope.ngModel.selectedObject.getId() === $scope.domainObject.getId()) {
|
||||
setSelection($scope.domainObject);
|
||||
}
|
||||
return isSelected;
|
||||
return $scope.ngModel.selectedObject.getId() === $scope.domainObject.getId();
|
||||
|
||||
// TODO: Check to make sure this change doesn't break anything.
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user