mirror of
https://github.com/philomena-dev/philomena.git
synced 2024-11-30 14:57:59 +01:00
Removing unnecessary nullish operator
This commit is contained in:
parent
aa186fa0ad
commit
42ba4c2be7
1 changed files with 1 additions and 1 deletions
|
@ -271,7 +271,7 @@ function escapeSelection(textarea: HTMLTextAreaElement, options: Partial<SyntaxH
|
|||
function clickHandler(event: MouseEvent) {
|
||||
if (!(event.target instanceof HTMLElement)) return;
|
||||
|
||||
const button = event.target?.closest<HTMLElement>('.communication__toolbar__button');
|
||||
const button = event.target.closest<HTMLElement>('.communication__toolbar__button');
|
||||
const toolbar = button?.closest<HTMLElement>('.communication__toolbar');
|
||||
|
||||
if (!button || !toolbar?.parentElement) return;
|
||||
|
|
Loading…
Reference in a new issue