Skip to content

Commit

Permalink
fix: when middleware config options is undefined. options.enable expr… (
Browse files Browse the repository at this point in the history
  • Loading branch information
tkvern authored Oct 12, 2020
1 parent cacb2fa commit 3378ea4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/web/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ class AppBootHook {
} else {
// egg
const options = this.app.config[name];
if (options.enable === false) {
if (options && options.enable === false) {
continue;
}
// support options.match and options.ignore
Expand Down

0 comments on commit 3378ea4

Please sign in to comment.