Skip to content

Commit

Permalink
fix(kit): set active app record after register component plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
webfansplz committed Feb 5, 2024
1 parent 717e808 commit 32cb373
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/devtools-kit/src/core/app-record/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ export function createAppRecord(app: VueAppInstance['appContext']['app']): AppRe
}

export async function setActiveAppRecord(appRecord: AppRecord) {
registerComponentDevToolsPlugin(appRecord?.app as unknown as VueAppInstance)
await registerComponentDevToolsPlugin(appRecord?.app as unknown as VueAppInstance)
devtoolsAppRecords.active = appRecord
devtoolsAppRecords.activeId = `${appRecord.id}`
registerPlugin(appRecord.app!, appRecord.api!)
Expand Down

0 comments on commit 32cb373

Please sign in to comment.