mirror of
https://github.com/nasa/openmct.git
synced 2025-01-18 18:57:01 +00:00
add if statement to check is objects are not equal before reassigning metadata
This commit is contained in:
parent
06779e6cd9
commit
7deb3cd025
@ -111,8 +111,10 @@ define(
|
||||
getMetadata();
|
||||
});
|
||||
|
||||
this.InspectorMutation.listen(function(){
|
||||
getMetadata();
|
||||
this.InspectorMutation.listen(function () {
|
||||
if(!angular.equals($scope.metadata, $scope.ngModel.selectedObject.useCapability('metadata'))){
|
||||
getMetadata();
|
||||
}
|
||||
});
|
||||
}
|
||||
return ObjectInspectorController;
|
||||
|
Loading…
Reference in New Issue
Block a user