Fix for softAllowedMaximumThroughput issue when using sdk (#1501)

This commit is contained in:
vchske 2023-06-23 12:04:56 -07:00 committed by GitHub
parent c606d95765
commit 15e8c66aa4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 2 deletions

View File

@ -133,8 +133,10 @@ export class ThroughputInputAutoPilotV3Component extends React.Component<
if (isDirty(this.props.maxAutoPilotThroughput, this.props.maxAutoPilotThroughputBaseline)) { if (isDirty(this.props.maxAutoPilotThroughput, this.props.maxAutoPilotThroughputBaseline)) {
isDiscardable = true; isDiscardable = true;
if ( if (
this.props.maxAutoPilotThroughput <= this.props.softAllowedMaximumThroughput && this.props.softAllowedMaximumThroughput
AutoPilotUtils.isValidAutoPilotThroughput(this.props.maxAutoPilotThroughput) ? this.props.maxAutoPilotThroughput <= this.props.softAllowedMaximumThroughput &&
AutoPilotUtils.isValidAutoPilotThroughput(this.props.maxAutoPilotThroughput)
: AutoPilotUtils.isValidAutoPilotThroughput(this.props.maxAutoPilotThroughput)
) { ) {
isSaveable = true; isSaveable = true;
} }