diff --git a/packages/app-backend-core/src/index.ts b/packages/app-backend-core/src/index.ts index 3494dd3e0..b0138abb0 100644 --- a/packages/app-backend-core/src/index.ts +++ b/packages/app-backend-core/src/index.ts @@ -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`)