We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
${undefined}
1 parent 977e694 commit 5b29444Copy full SHA for 5b29444
src/DocumentComponent.ts
@@ -32,8 +32,8 @@ export class DocumentComponent extends NodeComponent<DocumentFragment> {
32
const idPrefix = `tag-${crypto.randomUUID()}-`;
33
const nodes: NodeComponent<any>[] = [];
34
const doc = new DocumentComponent(strings.reduce((acc, str, index) => {
35
+ if (index >= components.length) return acc + str;
36
const component = components[index - 1];
- if (component === undefined) return acc + str;
37
if (component instanceof NodeComponent) {
38
nodes.push(component);
39
return acc + `${str}<slot name="${idPrefix}${nodes.length - 1}"></slot>`;
0 commit comments