Skip to content

Commit 78425e3

Browse files
committed
Move the highlight class addition outside to allow it to be set in the first place
1 parent 96b23eb commit 78425e3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

debug_toolbar/static/debug_toolbar/js/history.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ $$.on(djDebug, "click", ".switchHistory", function (event) {
1010
const highlighted = tbody.querySelector(".djdt-highlighted");
1111
if (highlighted) {
1212
highlighted.classList.remove("djdt-highlighted");
13-
this.closest("tr").classList.add("djdt-highlighted");
1413
}
14+
this.closest("tr").classList.add("djdt-highlighted");
1515

1616
ajaxForm(this).then(function (data) {
1717
djDebug.setAttribute("data-store-id", newStoreId);

0 commit comments

Comments
 (0)