mirror of
https://github.com/umami-software/umami.git
synced 2026-02-21 04:55:36 +01:00
Added check if there is no parent element
This commit is contained in:
parent
26a9cb67d8
commit
017408c8f5
1 changed files with 2 additions and 0 deletions
|
|
@ -119,6 +119,8 @@
|
|||
return currentElement;
|
||||
}
|
||||
currentElement = currentElement.parentElement;
|
||||
if (currentElement === null) // if there is no parent element
|
||||
return null;
|
||||
}
|
||||
return null;
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue