Skip to content

Commit c63f1d2

Browse files
Update web_src/js/features/repo-code.ts
Co-authored-by: silverwind <[email protected]> Signed-off-by: Kerwin Bryant <[email protected]>
1 parent d7ccf38 commit c63f1d2

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

web_src/js/features/repo-code.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -117,10 +117,7 @@ function showLineButton() {
117117

118118
// Hide menu when clicking menu items
119119
menu.addEventListener('click', () => {
120-
const tippyInstance = btn._tippy;
121-
if (tippyInstance) {
122-
tippyInstance.hide();
123-
}
120+
btn._tippy?.hide();
124121
});
125122
}
126123

0 commit comments

Comments
 (0)