Skip to content

Commit b945079

Browse files
committed
wip: update tests
1 parent c0cd7fc commit b945079

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/runtime-vapor/src/components/Teleport.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,8 @@ export class TeleportFragment extends VaporFragment {
6161
update(props: TeleportProps, children: Block): void {
6262
const parent = this.anchor.parentNode
6363
// teardown previous
64-
if (this.nodes && (parent || this.currentParent)) {
65-
remove(this.nodes, this.currentParent! || parent)
64+
if (this.nodes && (this.currentParent || parent)) {
65+
remove(this.nodes, (this.currentParent || parent)!)
6666
}
6767

6868
this.nodes = children

0 commit comments

Comments
 (0)