Explorar o código

[spark] Fix JS error on second execute

Johan Ahlen %!s(int64=10) %!d(string=hai) anos
pai
achega
d55a2a8
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      apps/spark/src/spark/templates/editor_components.mako

+ 2 - 0
apps/spark/src/spark/templates/editor_components.mako

@@ -457,7 +457,9 @@ from django.utils.translation import ugettext as _
 <script type="text/html" id="snippet-results">
   <!-- ko if: result.hasSomeResults() && result.type() != 'table' -->
   <div class="row-fluid" style="max-height: 400px; margin: 10px 0;">
+    <!-- ko if: result.data().length != 0 -->
     <pre data-bind="text: result.data()[0][1]"></pre>
+    <!-- /ko -->
   </div>
   <!-- /ko -->