Skip to content

Commit

Permalink
fix: app id null error in console
Browse files Browse the repository at this point in the history
  • Loading branch information
Akryum committed Sep 2, 2020
1 parent 57f1395 commit 0cc44a9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/app-backend-core/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ function connect () {
})

ctx.bridge.on(BridgeEvents.TO_BACK_APP_SELECT, async id => {
if (id == null) return
const record = ctx.appRecords.find(r => r.id === id)
if (!record) {
console.error(`App with id ${id} not found`)
Expand Down

0 comments on commit 0cc44a9

Please sign in to comment.