mirror of
https://github.com/nasa/openmct.git
synced 2025-01-31 08:25:31 +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();
|
getMetadata();
|
||||||
});
|
});
|
||||||
|
|
||||||
this.InspectorMutation.listen(function(){
|
this.InspectorMutation.listen(function () {
|
||||||
getMetadata();
|
if(!angular.equals($scope.metadata, $scope.ngModel.selectedObject.useCapability('metadata'))){
|
||||||
|
getMetadata();
|
||||||
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
return ObjectInspectorController;
|
return ObjectInspectorController;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user