Skip to content

Commit f6dee0a

Browse files
committed
fix(vue3): __VUE_DEVTOOLS_UID__ of undefined, closes #1569
1 parent f91a3d7 commit f6dee0a

File tree

1 file changed

+3
-1
lines changed
  • packages/app-backend-vue3/src/components

1 file changed

+3
-1
lines changed

packages/app-backend-vue3/src/components/tree.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,9 @@ export class ComponentWalker {
9494
return list.filter(child => !isBeingDestroyed(child) && !child.type.devtools?.hide)
9595
}
9696

97-
private captureId (instance) {
97+
private captureId (instance): string {
98+
if (!instance) return null
99+
98100
// instance.uid is not reliable in devtools as there
99101
// may be 2 roots with same uid which causes unexpected
100102
// behaviour

0 commit comments

Comments
 (0)