Skip to content

Commit 67e03a4

Browse files
committed
Guard for this.options.stage
1 parent 4faf920 commit 67e03a4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ class ServerlessDynamodbLocal {
105105
}
106106
};
107107

108-
const stage = this.options.stage || this.service.provider.stage;
108+
const stage = (this.options && this.options.stage) || this.service.provider.stage;
109109
if (this.config.stages && !this.config.stages.includes(stage)) {
110110
// don't do anything for this stage
111111
this.hooks = {};

0 commit comments

Comments
 (0)