add if statement to check is objects are not equal before reassigning metadata

This commit is contained in:
Deep Tailor 2017-10-03 14:34:01 -07:00
parent 06779e6cd9
commit 7deb3cd025

View File

@ -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;