Permalink
Browse files

fix(display-name): add check to return empty string when row is not a…

…n object
  • Loading branch information...
bas080
bas080 committed Jan 19, 2017
1 parent f41f31e commit d1c34023aee07e084f1ad1fec2479a5e61cff089
Showing with 4 additions and 0 deletions.
  1. +4 −0 src/datatable.js
@@ -371,6 +371,10 @@ export class DataTable {
}
displayValue(row, propertyName) {
if (typeof row !== 'object' || row === null) {
return '';
}
let flattened = new Homefront(row, Homefront.MODE_NESTED);
flattened.flatten();

0 comments on commit d1c3402

Please sign in to comment.