Skip to content

Commit bf77c70

Browse files
committed
Updated replaceToolbarState to use request id.
This was missed in an earlier merge.
1 parent f8bfb0d commit bf77c70

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

debug_toolbar/static/debug_toolbar/js/toolbar.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,7 @@ const djdt = {
298298

299299
function handleAjaxResponse(requestId) {
300300
const encodedRequestId = encodeURIComponent(requestId);
301-
const dest = `${sidebarUrl}?store_id=${encodedRequestId}`;
301+
const dest = `${sidebarUrl}?request_id=${encodedRequestId}`;
302302
slowjax(dest).then((data) => {
303303
if (djdt.needUpdateOnFetch) {
304304
replaceToolbarState(encodedRequestId, data);

debug_toolbar/static/debug_toolbar/js/utils.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ function ajaxForm(element) {
112112
function replaceToolbarState(newRequestId, data) {
113113
const djDebug = document.getElementById("djDebug");
114114
djDebug.setAttribute("data-request-id", newRequestId);
115-
// Check if response is empty, it could be due to an expired storeId.
115+
// Check if response is empty, it could be due to an expired requestId.
116116
for (const panelId of Object.keys(data)) {
117117
const panel = document.getElementById(panelId);
118118
if (panel) {

0 commit comments

Comments
 (0)