refactor: ♻️ simplify null check
This commit is contained in:
parent
087591e62d
commit
9e1fbed9b9
1 changed files with 1 additions and 3 deletions
|
@ -93,9 +93,7 @@ let rootEl = $shallowRef<HTMLElement>();
|
|||
let headerEl = $shallowRef<HTMLElement>();
|
||||
|
||||
const close = (ev) => {
|
||||
if (modal != null) {
|
||||
modal.close(ev);
|
||||
}
|
||||
modal?.close(ev);
|
||||
};
|
||||
|
||||
const onBgClick = () => {
|
||||
|
|
Loading…
Reference in a new issue