fix: change type of insertBefore to Node for better type safety

This commit is contained in:
Torsten Brendgen
2026-08-19 21:30:57 +02:00
parent 583964a792
commit 36bcef54e7
@@ -136,7 +136,7 @@ export default class CustomBrandingApplicationCustomizer
this.debug('Top rendering failed.', error); this.debug('Top rendering failed.', error);
} }
const insertBefore: ChildNode | null = host.firstChild; const insertBefore: Node = host.firstChild;
while (staging.firstChild) { while (staging.firstChild) {
const element: HTMLElement = staging.firstChild as HTMLElement; const element: HTMLElement = staging.firstChild as HTMLElement;
element.setAttribute('data-custom-branding-owner', COMPONENT_ID); element.setAttribute('data-custom-branding-owner', COMPONENT_ID);