Add null safety to handleLoggedOut() (#9062)
This commit is contained in:
parent
7a8e77cbf3
commit
1662473174
1 changed files with 1 additions and 2 deletions
|
|
@ -277,10 +277,9 @@ function observeForReplyClick() {
|
|||
}
|
||||
|
||||
function handleLoggedOut() {
|
||||
const toggleButton = document.querySelector('.response-templates-button');
|
||||
// global method from app/assets/javascripts/utilities/showModal.js
|
||||
/* eslint-disable-next-line no-undef */
|
||||
toggleButton.addEventListener('click', showModal);
|
||||
document.querySelector('.response-templates-button')?.addEventListener('click', showModal);
|
||||
}
|
||||
/* eslint-enable no-alert */
|
||||
/* eslint-enable no-restricted-globals */
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue