Browse Source

HUE-3978 [notebook] Backward compatibility for older notebooks

Romain Rigaux 9 years ago
parent
commit
21bd5c389d

+ 1 - 1
desktop/libs/notebook/src/notebook/templates/editor_components.mako

@@ -1512,7 +1512,7 @@ ${ hueIcons.symbols() }
               <table class="table table-condensed table-striped resultTable">
               <table class="table table-condensed table-striped resultTable">
                 <thead>
                 <thead>
                 <tr data-bind="foreach: result.meta">
                 <tr data-bind="foreach: result.meta">
-                  <th data-bind="html: ($index() == 0 ? '&nbsp;' : $data.name), css: cssClass, attr: {'width': ($index() == 0 ? '1%' : ''), title: $data.type }"></th>
+                  <th data-bind="html: ($index() == 0 ? '&nbsp;' : $data.name), css: typeof cssClass != 'undefined' ? cssClass : 'sort-string', attr: {'width': ($index() == 0 ? '1%' : ''), title: $data.type }"></th>
                 </tr>
                 </tr>
                 </thead>
                 </thead>
                 <tbody>
                 <tbody>