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
This commit is contained in:
commit
0c5f8391f9
|
@ -108,7 +108,7 @@
|
|||
var rows = document.createDocumentFragment();
|
||||
|
||||
if (requestStack.length) {
|
||||
var nbOfAjaxRequest = tbodies.rows.count();
|
||||
var nbOfAjaxRequest = tbodies.rows.length;
|
||||
if (nbOfAjaxRequest >= 100) {
|
||||
tbodies.deleteRow(nbOfAjaxRequest - 1);
|
||||
}
|
||||
|
|
Reference in New Issue