mirror of
https://github.com/kremalicious/umami.git
synced 2024-06-30 13:41:50 +02:00
fix: added check if there is no parent element
This commit is contained in:
parent
1e9a4ad08f
commit
4876684461
|
@ -119,6 +119,9 @@
|
|||
return currentElement;
|
||||
}
|
||||
currentElement = currentElement.parentElement;
|
||||
if (currentElement === null) {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
return null;
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue
Block a user