Skip to content

Commit

Permalink
fix - JS error "values of undefined" on a missing reference in a column
Browse files Browse the repository at this point in the history
  • Loading branch information
kenegozi committed Oct 27, 2015
1 parent 3c69410 commit 9b1d8a7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/javascripts/ng-admin/Crud/column/maColumn.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 9b1d8a7

Please sign in to comment.