Skip to content

Commit 2937932

Browse files
fbacallCopilot
andauthored
Update app/assets/javascripts/application.js
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent a278f05 commit 2937932

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/assets/javascripts/application.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -366,7 +366,7 @@ $(document).on('click', '.tess-expandable-btn', function (event) {
366366
event.preventDefault();
367367
let div = this.previousElementSibling;
368368

369-
if (!div.classList.contains('tess-expandable')) {
369+
if (!div || !div.classList.contains('tess-expandable')) {
370370
div = this.parentElement.querySelector('.tess-expandable');
371371
}
372372

0 commit comments

Comments
 (0)