This is an automated email from the ASF dual-hosted git repository. kbhatt pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/atlas.git
commit 6ece28fd957ca2e90936914bdfd26c7c35c1f306 Author: kevalbhatt <[email protected]> AuthorDate: Wed Apr 1 14:43:13 2020 +0530 ATLAS-3713 : UI : DSL select count() query doesn't display results on UI --- dashboardv2/public/js/utils/TableLayout.js | 4 +++- dashboardv3/public/js/utils/TableLayout.js | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/dashboardv2/public/js/utils/TableLayout.js b/dashboardv2/public/js/utils/TableLayout.js index b451041..a66411e 100644 --- a/dashboardv2/public/js/utils/TableLayout.js +++ b/dashboardv2/public/js/utils/TableLayout.js @@ -359,7 +359,9 @@ define(['require', }); if (this.showDefaultTableSorted) { this.grid.render(); - this.grid.sort(this.sortOpts.sortColumn, this.sortOpts.sortDirection); + if (this.collection.fullCollection.length > 1) { + this.grid.sort(this.sortOpts.sortColumn, this.sortOpts.sortDirection); + } this.rTableList.show(this.grid); } else { this.rTableList.show(this.grid); diff --git a/dashboardv3/public/js/utils/TableLayout.js b/dashboardv3/public/js/utils/TableLayout.js index b451041..a66411e 100644 --- a/dashboardv3/public/js/utils/TableLayout.js +++ b/dashboardv3/public/js/utils/TableLayout.js @@ -359,7 +359,9 @@ define(['require', }); if (this.showDefaultTableSorted) { this.grid.render(); - this.grid.sort(this.sortOpts.sortColumn, this.sortOpts.sortDirection); + if (this.collection.fullCollection.length > 1) { + this.grid.sort(this.sortOpts.sortColumn, this.sortOpts.sortDirection); + } this.rTableList.show(this.grid); } else { this.rTableList.show(this.grid);
