mirror of
https://github.com/nasa/openmct.git
synced 2025-06-16 14:18:16 +00:00
[Search] Comments and errors
Changed TreeNodeController slightly to do error checking. Also updated some comments.
This commit is contained in:
@ -171,9 +171,10 @@ 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)
|
||||
return $scope.ngModel.selectedObject.getId() === $scope.domainObject.getId();
|
||||
return getId($scope.ngModel.selectedObject) === getId($scope.domainObject);
|
||||
|
||||
// TODO: Check to make sure this change doesn't break anything.
|
||||
// TODO: Check to make sure this change doesn't break
|
||||
// anything/find a better way to do this
|
||||
}
|
||||
};
|
||||
}
|
||||
|
Reference in New Issue
Block a user