Skip to content

Commit

Permalink
Fix #653, #659 - Fix UI to work with most recent calls first (#668)
Browse files Browse the repository at this point in the history
Fixes both #653 and #659 by updating the UI to work with the recent-trace-first sorting introduced in #550
  • Loading branch information
RobertSmits authored Nov 30, 2024
1 parent 105d9e5 commit b9b7785
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/MiniProfiler.Shared/ui/lib/MiniProfiler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -430,13 +430,13 @@ namespace StackExchange.Profiling {
<td colspan="3" class="mp-results-none">(no client timings)</td>`) + `
</tr>`);
});
document.querySelector('.mp-results-index').insertAdjacentHTML('beforeend', html);
document.querySelector('.mp-results-index').insertAdjacentHTML('afterbegin', html);
const oldId = id;
const oldData = data;
setTimeout(() => {
let newId = oldId;
if (oldData.length > 0) {
newId = oldData[oldData.length - 1].Id;
newId = oldData[0].Id;
}
updateGrid(newId);
}, 4000);
Expand Down

0 comments on commit b9b7785

Please sign in to comment.