Procházet zdrojové kódy

Fixes elasticsearch/kibana issue #151

Marcel de Graaf před 12 roky
rodič
revize
1969057d51
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  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 > 0 && !_.isUndefined(text) && !_.isNull(text)) {
+    if (!_.isUndefined(text) && !_.isNull(text) && text.toString().length > 0) {
       return text.toString().
       return text.toString().
         replace(/&/g, '&').
         replace(/&/g, '&').
         replace(/</g, '&lt;').
         replace(/</g, '&lt;').