Issue #3496541 by jurgenhaas, grimreaper, larowlan: Error when navigation JS is loaded for anonymous users

merge-requests/9002/merge
nod_ 2025-01-07 15:17:51 +01:00
parent 25b6571b63
commit 554b7c600a
No known key found for this signature in database
GPG Key ID: 76624892606FA197
1 changed files with 1 additions and 1 deletions

View File

@ -68,7 +68,7 @@
newState ? 'locked' : 'unlocked',
);
doc.querySelector('.admin-toolbar').dispatchEvent(
doc.querySelector('.admin-toolbar')?.dispatchEvent(
new CustomEvent(SIDEBAR_CONTENT_EVENT, {
detail: {
state: newState,