From 52f187e86adaac1a8a9c045b31e973a2e52133fc Mon Sep 17 00:00:00 2001
From: Xavier HAUSHERR <xkobal@users.noreply.github.com>
Date: Fri, 2 Mar 2018 09:09:42 +0100
Subject: [PATCH] [WebProfilerBundle] Fix Debug toolbar breaks app

---
 .../Resources/views/Profiler/base_js.html.twig                  | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/Symfony/Bundle/WebProfilerBundle/Resources/views/Profiler/base_js.html.twig b/src/Symfony/Bundle/WebProfilerBundle/Resources/views/Profiler/base_js.html.twig
index 7aae3eef5bb..ac4d6cd522c 100644
--- a/src/Symfony/Bundle/WebProfilerBundle/Resources/views/Profiler/base_js.html.twig
+++ b/src/Symfony/Bundle/WebProfilerBundle/Resources/views/Profiler/base_js.html.twig
@@ -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);
                         }
-- 
GitLab