Fix AstroComponent check (#1849)
This commit is contained in:
parent
7275212e5f
commit
4879c8b2b6
1 changed files with 1 additions and 1 deletions
|
@ -30,7 +30,7 @@ async function _render(child: any): Promise<any> {
|
||||||
}
|
}
|
||||||
// Add a comment explaining why each of these are needed.
|
// Add a comment explaining why each of these are needed.
|
||||||
// Maybe create clearly named function for what this is doing.
|
// Maybe create clearly named function for what this is doing.
|
||||||
else if (child instanceof AstroComponent || child.toString() === '[object AstroComponent]') {
|
else if (child instanceof AstroComponent || Object.prototype.toString.call(child) === '[object AstroComponent]') {
|
||||||
return await renderAstroComponent(child);
|
return await renderAstroComponent(child);
|
||||||
} else {
|
} else {
|
||||||
return child;
|
return child;
|
||||||
|
|
Loading…
Reference in a new issue