We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ffdbdf1 commit d80d421Copy full SHA for d80d421
src/serverless.js
@@ -58,11 +58,12 @@ class ServerlessComponent extends Component {
58
: this.state.lastVersion || '$LATEST'
59
60
// default traffic is 1.0, it can also be 0, so we should compare to undefined
61
- outputs[curRegion].traffic = scfOutput.Traffic
62
- ? scfOutput.Traffic
63
- : this.state.traffic !== undefined
64
- ? this.state.traffic
65
- : 1
+ outputs[curRegion].traffic =
+ scfOutput.Traffic !== undefined
+ ? scfOutput.Traffic
+ : this.state.traffic !== undefined
+ ? this.state.traffic
66
+ : 1
67
68
if (outputs[curRegion].traffic !== 1 && scfOutput.ConfigTrafficVersion) {
69
outputs[curRegion].configTrafficVersion = scfOutput.ConfigTrafficVersion
0 commit comments