From 87f326c5c64cddf072f978a18bd02e7739e9ff6a Mon Sep 17 00:00:00 2001 From: Lucas Damasceno Date: Mon, 7 Oct 2024 13:51:56 +0000 Subject: [PATCH] Reset total SQL count on route transition Fix total SQL count for SPAs when `show_total_sql_count` is enabled. --- lib/html/includes.js | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/html/includes.js b/lib/html/includes.js index 4b57ad9f..ddeb50e7 100644 --- a/lib/html/includes.js +++ b/lib/html/includes.js @@ -1179,6 +1179,7 @@ var _MiniProfiler = (function() { reqs = 0; totalTime = 0; + totalSqlCount = 0; expandedResults = false; toArray( document.querySelectorAll(".profiler-results .profiler-result")