mirror of
https://github.com/BradNut/umami
synced 2025-09-08 17:40:29 +00:00
Merge pull request #1992 from Truimo/dev
fix for #1940: check if there is no parent element
This commit is contained in:
commit
c3beb10e3b
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…
Reference in a new issue