Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
- [FIX] `flamegraph_mode` query param having no effect. [#635](https://github.com/MiniProfiler/rack-mini-profiler/pull/635)
- [FEATURE] Show record type and count in SQL query UI. [#638](https://github.com/MiniProfiler/rack-mini-profiler/pull/638)
- [FEATURE] Show Active Record QueryCache hits in UI. [#640](https://github.com/MiniProfiler/rack-mini-profiler/pull/640)
- [FIX] max_traces_to_show had chance to break the profiler frontend [#297](https://github.com/MiniProfiler/rack-mini-profiler/issues/297)

## 3.3.1 - 2024-02-15
- [FEATURE] Support dynamic `config.content_security_policy_nonce` [#609](https://github.com/MiniProfiler/rack-mini-profiler/pull/609)
Expand Down
4 changes: 2 additions & 2 deletions lib/html/includes.js
Original file line number Diff line number Diff line change
Expand Up @@ -285,10 +285,10 @@ var _MiniProfiler = (function() {
}); // limit count

if (
container.querySelectorAll(".profiler-result").length >
container.querySelectorAll(".profiler-result:not(:has(.profiler-totals))").length >
options.maxTracesToShow
) {
var elem = container.querySelector(".profiler-result");
var elem = container.querySelector('.profiler-result:not(:has(.profiler-totals))');

if (elem) {
elem.parentElement.removeChild(elem);
Expand Down
Loading