Skip to content

Commit

Permalink
Clear the pagination div while the table reloads. This fixes a bug wh…
Browse files Browse the repository at this point in the history
…ere, when switching tabs or, in general the table is updated-the previous pagination results are shown while the table loads
  • Loading branch information
ThomasThelen committed Feb 18, 2022
1 parent 18474f8 commit db22c5d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions dr-app/public/js/results_search.js
Original file line number Diff line number Diff line change
Expand Up @@ -1007,6 +1007,10 @@ var prepareNewTable = function(activeTabName) {
// Recreate the table body. Clear the existing contents
var tableBody = angular.element(selectors["tbody"] + " tbody");
tableBody.empty();

// Clear the pagination section
var paginationSection = angular.element(selectors["pagination"]);
paginationSection.empty();
}

var displayTableByTabName = function(activeTabName, result, from = "") {
Expand Down

0 comments on commit db22c5d

Please sign in to comment.