Skip to content

Commit

Permalink
optional chaining
Browse files Browse the repository at this point in the history
  • Loading branch information
Yen Truong committed May 4, 2022
1 parent dd1d08e commit d019db4
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions layouts/html.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -146,11 +146,9 @@
} else if (window.isOverlay) {
window.Overlay.onMessage(message);
} else if (message.eventType && message.eventType === 'click') {
if (ANSWERS) {
ANSWERS.components
.getActiveComponents('AutoComplete')
.forEach(autocompleteComponent => autocompleteComponent.close());
}
ANSWERS?.components
.getActiveComponents('AutoComplete')
.forEach(autocompleteComponent => autocompleteComponent.close());
} else if (message.action === 'update-tab-navigation') {
if (!ANSWERS) {
return;
Expand Down

0 comments on commit d019db4

Please sign in to comment.