Prechádzať zdrojové kódy

Merge pull request #135 from rashidkpc/master

Fixes #123
Rashid Khan 12 rokov pred
rodič
commit
21f348c8d9
1 zmenil súbory, kde vykonal 1 pridanie a 1 odobranie
  1. 1 1
      panels/table/module.js

+ 1 - 1
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;').