Skip to content

Commit fb170d4

Browse files
authored
Update index.js
1 parent bffa0b0 commit fb170d4

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
@@ -13,7 +13,7 @@ class ServerlessStepFunctionsLocal {
1313
this.log = serverless.cli.log.bind(serverless.cli);
1414
this.config = (this.service.custom && this.service.custom.stepFunctionsLocal) || {};
1515

16-
if (this.service.provider.stage !== undefined) {
16+
if (this.service.provider !== undefined && this.service.provider.stage !== undefined) {
1717
this.stage = this.service.provider.stage;
1818
} else if (this.service.stage !== undefined) {
1919
this.stage = this.service.stage;

0 commit comments

Comments
 (0)