mirror of
https://github.com/BookStackApp/BookStack.git
synced 2025-07-28 17:02:04 +03:00
ESLINT: Addressed remaining detected issues
This commit is contained in:
@ -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();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
Reference in New Issue
Block a user