Commit 916ed284 by Rashid Khan

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

parent 1818000d
...@@ -269,7 +269,7 @@ angular.module('kibana.table', []) ...@@ -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;').
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment