Skip to content

Commit 61b22bf

Browse files
committed
fix runtime error
1 parent bb65eaa commit 61b22bf

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

runtime/proxy.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,8 @@ const relayInternalMethods = (proxy, cmp) => {
6565
.forEach(key => {
6666
delete proxy[key]
6767
})
68+
// guard: no component
69+
if (!cmp) return
6870
// proxy current $$ props to the actual component
6971
Object.keys(cmp)
7072
.filter(isInternal)

0 commit comments

Comments
 (0)