From 15e8c66aa4980c63c9834b2df002b0281ec6e6a8 Mon Sep 17 00:00:00 2001 From: vchske Date: Fri, 23 Jun 2023 12:04:56 -0700 Subject: [PATCH] Fix for softAllowedMaximumThroughput issue when using sdk (#1501) --- .../ThroughputInputAutoPilotV3Component.tsx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/Explorer/Controls/Settings/SettingsSubComponents/ThroughputInputComponents/ThroughputInputAutoPilotV3Component.tsx b/src/Explorer/Controls/Settings/SettingsSubComponents/ThroughputInputComponents/ThroughputInputAutoPilotV3Component.tsx index 7ba21f88b..c8eadd075 100644 --- a/src/Explorer/Controls/Settings/SettingsSubComponents/ThroughputInputComponents/ThroughputInputAutoPilotV3Component.tsx +++ b/src/Explorer/Controls/Settings/SettingsSubComponents/ThroughputInputComponents/ThroughputInputAutoPilotV3Component.tsx @@ -133,8 +133,10 @@ export class ThroughputInputAutoPilotV3Component extends React.Component< if (isDirty(this.props.maxAutoPilotThroughput, this.props.maxAutoPilotThroughputBaseline)) { isDiscardable = true; if ( - this.props.maxAutoPilotThroughput <= this.props.softAllowedMaximumThroughput && - AutoPilotUtils.isValidAutoPilotThroughput(this.props.maxAutoPilotThroughput) + this.props.softAllowedMaximumThroughput + ? this.props.maxAutoPilotThroughput <= this.props.softAllowedMaximumThroughput && + AutoPilotUtils.isValidAutoPilotThroughput(this.props.maxAutoPilotThroughput) + : AutoPilotUtils.isValidAutoPilotThroughput(this.props.maxAutoPilotThroughput) ) { isSaveable = true; }