Skip to content

Commit 225a287

Browse files
Add reduce acc to template literal
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
1 parent 5b29444 commit 225a287

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/DocumentComponent.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ export class DocumentComponent extends NodeComponent<DocumentFragment> {
3636
const component = components[index - 1];
3737
if (component instanceof NodeComponent) {
3838
nodes.push(component);
39-
return acc + `${str}<slot name="${idPrefix}${nodes.length - 1}"></slot>`;
39+
return `${acc}${str}<slot name="${idPrefix}${nodes.length - 1}"></slot>`;
4040
}
4141
return acc + str + String(component);
4242
}, ""));

0 commit comments

Comments
 (0)