Skip to content

Commit 0cc44a9

Browse files
committed
fix: app id null error in console
1 parent 57f1395 commit 0cc44a9

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

packages/app-backend-core/src/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@ function connect () {
8888
})
8989

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

0 commit comments

Comments
 (0)