Quellcode durchsuchen

[editor] Don't show "0" as the left most header in the ResultTable

Johan Ahlen vor 4 Jahren
Ursprung
Commit
6c183cf9a7

+ 2 - 1
desktop/core/src/desktop/js/apps/editor/components/result/ResultTable.vue

@@ -51,7 +51,8 @@
   import {
     EXECUTABLE_RESULT_UPDATED_TOPIC,
     EXECUTABLE_UPDATED_TOPIC,
-    ExecutableResultUpdatedEvent
+    ExecutableResultUpdatedEvent,
+    ExecutableUpdatedEvent
   } from 'apps/editor/execution/events';
   import { defineComponent, PropType } from 'vue';
 

+ 1 - 1
desktop/core/src/desktop/js/components/HueTable.vue

@@ -37,7 +37,7 @@
             :class="cellClass(column.headerCssClass, colIndex)"
             scope="col"
           >
-            {{ column.label || column.key }}
+            {{ typeof column.label !== 'undefined' ? column.label : column.key }}
           </th>
           <!-- To fill the blank space to the right when table width is smaller than available horizontal space -->
           <th class="column-flush" scope="col" />