Added null and undefined handling to highlight filter, closes #123

pull/7/head
Rashid Khan 12 years ago
parent 1818000da8
commit 916ed28400
  1. 2
      panels/table/module.js

@ -269,7 +269,7 @@ angular.module('kibana.table', [])
}) })
.filter('highlight', function() { .filter('highlight', function() {
return function(text) { return function(text) {
if (text.toString().length) { if (text.toString().length > 0 && !_.isUndefined(text) && !_.isNull(text)) {
return text.toString(). return text.toString().
replace(/&/g, '&'). replace(/&/g, '&').
replace(/</g, '&lt;'). replace(/</g, '&lt;').

Loading…
Cancel
Save