Преглед на файлове

HUE-9293 [editor] Fix issue where additional fetched rows are not rendered after scroll in editor v2

Johan Ahlen преди 5 години
родител
ревизия
ebde13a188
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      desktop/core/src/desktop/js/apps/notebook2/components/ko.snippetResults.js

+ 1 - 1
desktop/core/src/desktop/js/apps/notebook2/components/ko.snippetResults.js

@@ -255,7 +255,7 @@ class SnippetResults extends DisposableComponent {
       }
 
       if (refresh) {
-        this.data(executionResult.rows);
+        this.data(executionResult.rows.concat());
       } else if (
         executionResult.lastRows.length &&
         this.data().length !== executionResult.rows.length