diff --git a/platform/commonUI/general/src/controllers/TreeNodeController.js b/platform/commonUI/general/src/controllers/TreeNodeController.js index a804ddabff..64e040ee89 100644 --- a/platform/commonUI/general/src/controllers/TreeNodeController.js +++ b/platform/commonUI/general/src/controllers/TreeNodeController.js @@ -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 } }; } diff --git a/platform/features/search/src/SearchAggregator.js b/platform/features/search/src/SearchAggregator.js index 361ddfe446..9fefb45d87 100644 --- a/platform/features/search/src/SearchAggregator.js +++ b/platform/features/search/src/SearchAggregator.js @@ -180,10 +180,10 @@ define( }, /** - * The latest search results that have been calculated. The - * format of the returned objects are searchResult objects, - * which have the members id, object, and score. This array - * is updated constantly. + * An array containing the latest search results that have been + * calculated. The format of the returned objects are searchResult + * objects, which have the members id, object, and score. This + * array is updated often. */ latestResults: latestMergedResults,