Skip to content

Commit

Permalink
🐛 Allows MenuToggle even without the current_user button presence in …
Browse files Browse the repository at this point in the history
…navbar
  • Loading branch information
esilvert authored and cprodhomme committed Nov 20, 2023
1 parent fb49229 commit 9602ab7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/assets/javascripts/arctic_admin/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ function menuToggle(event) {
const forbiddenLinks = event.target === logout ||
logout.contains(event.target) ||
event.target === currentUser ||
currentUser.contains(event.target)
currentUser?.contains(event.target)
if (!forbiddenLinks) {
menu().classList.toggle('tabs_open')
}
Expand Down

0 comments on commit 9602ab7

Please sign in to comment.