8000 bug #26368 [WebProfilerBundle] Fix Debug toolbar breaks app (xkobal) · symfony/symfony@0c5f839 · GitHub
[go: up one dir, main page]

Skip to content

Commit 0c5f839

Browse files
bug #26368 [WebProfilerBundle] Fix Debug toolbar breaks app (xkobal)
This PR was squashed before being merged into the 2.7 branch (closes #26368). Discussion ---------- [WebProfilerBundle] Fix Debug toolbar breaks app | Q | A | ------------- | --- | Branch? | 2.7 | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes <!-- please add some, will be required by reviewers --> | Fixed tickets | #26364 | License | MIT | Doc PR | symfony/symfony-docs#... <!-- required for new features --> Wrong method is used to count `tbody.rows` Commits ------- 52f187e [WebProfilerBundle] Fix Debug toolbar breaks app
2 parents 31c69ec + 52f187e commit 0c5f839

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Bundle/WebProfilerBundle/Resources/views/Profiler/base_js.html.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@
108108
var rows = document.createDocumentFragment();
109109
110110
if (requestStack.length) {
111-
var nbOfAjaxRequest = tbodies.rows.count();
111+
var nbOfAjaxRequest = tbodies.rows.length;
112112
if (nbOfAjaxRequest >= 100) {
113113
tbodies.deleteRow(nbOfAjaxRequest - 1);
114114
}

0 commit comments

Comments
 (0)
0