Forráskód Böngészése

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

Rashid Khan 12 éve
szülő
commit
916ed28400
1 módosított fájl, 1 hozzáadás és 1 törlés
  1. 1 1
      panels/table/module.js

+ 1 - 1
panels/table/module.js

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