Skip to content

Commit

Permalink
Reset total SQL count on route transition (#624)
Browse files Browse the repository at this point in the history
Fix total SQL count for SPAs when `show_total_sql_count` is enabled.
  • Loading branch information
lucas-telus authored Feb 7, 2025
1 parent ac28045 commit aa0480f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/html/includes.js
Original file line number Diff line number Diff line change
Expand Up @@ -1179,6 +1179,7 @@ var _MiniProfiler = (function() {

reqs = 0;
totalTime = 0;
totalSqlCount = 0;
expandedResults = false;
toArray(
document.querySelectorAll(".profiler-results .profiler-result")
Expand Down

0 comments on commit aa0480f

Please sign in to comment.