Skip to content

Commit

Permalink
fix(vue2): initialize appRecord.meta in case it's falsy
Browse files Browse the repository at this point in the history
  • Loading branch information
Akryum committed Feb 11, 2022
1 parent 3f70e3d commit 29ea4d0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/app-backend-vue2/src/components/tree.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,9 @@ export function getComponentParents (instance, api: DevtoolsApi, ctx: BackendCon
function initCtx (_api: DevtoolsApi, ctx: BackendContext) {
appRecord = ctx.currentAppRecord
api = _api
if (!appRecord.meta) {
appRecord.meta = {}
}
if (!appRecord.meta.instanceMap) {
appRecord.meta.instanceMap = new Map()
}
Expand Down

0 comments on commit 29ea4d0

Please sign in to comment.