Skip to content

Commit

Permalink
Update debug/src/debug.js
Browse files Browse the repository at this point in the history
Co-authored-by: Marvin Hagemeister <hello@marvinh.dev>
  • Loading branch information
JoviDeCroock and marvinhagemeister authored Jul 24, 2024
1 parent 2b39ea8 commit 5ea0e21
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion debug/src/debug.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ function getClosestDomNodeParentName(parent) {
if (!parent) return '';
if (typeof parent.type == 'function') {
if (parent._parent == null) {
if (parent._dom != null && parent._dom.parentNode !== null) {
if (parent._dom != null && parent._dom.parentNode != null) {
return parent._dom.parentNode.localName;
}
return '';
Expand Down

0 comments on commit 5ea0e21

Please sign in to comment.