소스 검색

[spark] Fix JS error on second execute

Johan Ahlen 10 년 전
부모
커밋
d55a2a8
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  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 -->