diff --git a/src/javascripts/ng-admin/Crud/column/maColumn.js b/src/javascripts/ng-admin/Crud/column/maColumn.js index 7423cc5c..99478376 100644 --- a/src/javascripts/ng-admin/Crud/column/maColumn.js +++ b/src/javascripts/ng-admin/Crud/column/maColumn.js @@ -36,7 +36,9 @@ function maColumn($state, $anchorScroll, $compile, Configuration, FieldViewConfi scope.datastore = scope.datastore(); scope.field = scope.field(); scope.entry = scope.entry(); - scope.value = scope.entry.values[scope.field.name()]; + scope.value = typeof scope.entry === 'undefined' + ? '' + : scope.entry.values[scope.field.name()]; scope.entity = scope.entity(); let customTemplate = scope.field.getTemplateValue(scope.entry); if (customTemplate) {