Refactor: Simplify isThereModal function
This commit is contained in:
parent
63dec536e6
commit
5028f80a63
1 changed files with 1 additions and 2 deletions
|
|
@ -410,6 +410,5 @@ export function extractColumnsFromRows(
|
||||||
|
|
||||||
export function isThereModal(): boolean {
|
export function isThereModal(): boolean {
|
||||||
const modal = document.body.getElementsByClassName(MODAL_CLASSES);
|
const modal = document.body.getElementsByClassName(MODAL_CLASSES);
|
||||||
if (modal.length > 0) return true;
|
return modal.length > 0;
|
||||||
return false;
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue