Skip to content

Commit 97496c5

Browse files
committed
fix: null error in plugin app scope check, close #1734
1 parent 56f57e4 commit 97496c5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/app-backend-api/src/hooks.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ export class DevtoolsHookable implements Hookable<BackendContext> {
3333

3434
// App scope
3535
if (!this.plugin.descriptor.disableAppScope &&
36-
this.ctx.currentAppRecord.options.app !== this.plugin.descriptor.app) return
36+
this.ctx.currentAppRecord?.options.app !== this.plugin.descriptor.app) return
3737

3838
// Plugin scope
3939
if (!this.plugin.descriptor.disablePluginScope &&

0 commit comments

Comments
 (0)