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 9320c04 commit 0285406Copy full SHA for 0285406
src/serverless.js
@@ -70,11 +70,12 @@ class ServerlessComponent extends Component {
70
: this.state.lastVersion || '$LATEST'
71
72
// default traffic is 1.0, it can also be 0, so we should compare to undefined
73
- outputs[curRegion].traffic = scfOutput.Traffic
74
- ? scfOutput.Traffic
75
- : this.state.traffic !== undefined
76
- ? this.state.traffic
77
- : 1
+ outputs[curRegion].traffic =
+ scfOutput.Traffic !== undefined
+ ? scfOutput.Traffic
+ : this.state.traffic !== undefined
+ ? this.state.traffic
78
+ : 1
79
80
if (outputs[curRegion].traffic !== 1 && scfOutput.ConfigTrafficVersion) {
81
outputs[curRegion].configTrafficVersion = scfOutput.ConfigTrafficVersion
0 commit comments