Skip to content

Commit 0ff2d5e

Browse files
committed
fix: return early at the right place
1 parent 56ddd9c commit 0ff2d5e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

libs/angular-three/src/lib/renderer/renderer.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,10 +172,11 @@ export class NgtRenderer implements Renderer2 {
172172
this.appendChild(val, newChild);
173173
}
174174
});
175+
return;
175176
} else if (parent !== cRS[NgtRendererClassId.injectedParent]) {
176177
this.appendChild(cRS[NgtRendererClassId.injectedParent], newChild);
178+
return;
177179
}
178-
return;
179180
}
180181

181182
this.store.setParent(newChild, parent);

0 commit comments

Comments
 (0)