Skip to content

Commit

Permalink
πŸ› Fix javascript crash after this commit 9602ab7
Browse files Browse the repository at this point in the history
  • Loading branch information
cprodhomme committed Mar 18, 2024
1 parent 3e6fb04 commit 2911c3d
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 && currentUser.contains(event.target))
if (!forbiddenLinks) {
menu().classList.toggle('tabs_open')
}
Expand Down

0 comments on commit 2911c3d

Please sign in to comment.