Skip to content

Commit

Permalink
fix(component): check instance is null in capture
Browse files Browse the repository at this point in the history
  • Loading branch information
Akryum committed Apr 5, 2022
1 parent 70734d7 commit da62def
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/app-backend-vue3/src/components/tree.ts
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,8 @@ export class ComponentWalker {
* @return {Object}
*/
private async capture (instance: any, list: any[], depth: number): Promise<ComponentTreeNode> {
if (!instance) return null

const id = this.captureId(instance)

const name = getInstanceName(instance)
Expand Down

0 comments on commit da62def

Please sign in to comment.