mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-18 19:21:34 +08:00
chore(types): add null checks (#16351)
This commit is contained in:
@ -124,7 +124,7 @@ export function doRender(
|
||||
|
||||
function createNode(el: HTMLElement, type: CellType): HTMLElement | null {
|
||||
const template = getTemplate(el, type);
|
||||
if (template) {
|
||||
if (template && el.ownerDocument) {
|
||||
return el.ownerDocument.importNode(template.content, true).children[0] as HTMLElement;
|
||||
}
|
||||
return null;
|
||||
|
Reference in New Issue
Block a user