mirror of
https://github.com/umami-software/umami.git
synced 2026-02-15 18:15:35 +01:00
fix: added check if there is no parent element
This commit is contained in:
parent
1e9a4ad08f
commit
4876684461
1 changed files with 3 additions and 0 deletions
|
|
@ -119,6 +119,9 @@
|
||||||
return currentElement;
|
return currentElement;
|
||||||
}
|
}
|
||||||
currentElement = currentElement.parentElement;
|
currentElement = currentElement.parentElement;
|
||||||
|
if (currentElement === null) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return null;
|
return null;
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue