Skip to content

Commit

Permalink
avoid exceptions when viewing a container view
Browse files Browse the repository at this point in the history
  • Loading branch information
jstrachan committed Jul 24, 2013
1 parent cb603f0 commit aa6125c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion hawtio-web/src/main/webapp/app/core/js/corePlugin.ts
Expand Up @@ -313,7 +313,10 @@ angular.module('hawtioCore', ['bootstrap', 'ngResource', 'ui', 'ui.bootstrap.dia
$(element.find(".icon-pencil")[0]).hide();

ngModel.$render = function () {
scope.text = ngModel.$viewValue[attrs['property']];
var propertyName = attrs['property'];
if (propertyName && ngModel.$viewValue) {
scope.text = ngModel.$viewValue[ propertyName];
}
};

scope.showEdit = function () {
Expand Down

0 comments on commit aa6125c

Please sign in to comment.