diff --git a/debug_toolbar/static/debug_toolbar/js/history.js b/debug_toolbar/static/debug_toolbar/js/history.js index 7764ed0a1..e0a617d09 100644 --- a/debug_toolbar/static/debug_toolbar/js/history.js +++ b/debug_toolbar/static/debug_toolbar/js/history.js @@ -29,16 +29,12 @@ $$.on(djDebug, "click", ".refreshHistory", function (event) { event.preventDefault(); const container = djDebug.querySelector("#djdtHistoryRequests"); ajaxForm(this).then(function (data) { - if (data.requests.constructor === Array) { - data.requests.forEach(function (request) { - if ( - !container.querySelector( - '[data-store-id="' + request.id + '"]' - ) - ) { - container.innerHTML = request.content + container.innerHTML; - } - }); - } + data.requests.forEach(function (request) { + if ( + !container.querySelector('[data-store-id="' + request.id + '"]') + ) { + container.innerHTML = request.content + container.innerHTML; + } + }); }); });