Commit 6ece28fd by kevalbhatt

ATLAS-3713 : UI : DSL select count() query doesn't display results on UI

parent 2ac03425
......@@ -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);
......
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment