]> BookStack Code Mirror - bookstack/blobdiff - resources/js/components/shortcuts.js
Fixed linting and failing test issues from dropzone work
[bookstack] / resources / js / components / shortcuts.js
index 8c6c25ba11d66cb4b4383f42063fe2bf8a250c64..8e927e34cfcd05d2c371eca42ce1c1585fd84396 100644 (file)
@@ -33,7 +33,8 @@ export class Shortcuts extends Component {
 
         window.addEventListener('keydown', event => {
             if (event.key === '?') {
-                this.hintsShowing ? this.hideHints() : this.showHints();
+                const action = this.hintsShowing ? this.hideHints : this.showHints;
+                action();
             }
         });
     }