diff --git a/app/src/organisms/ChooseProtocolSlideout/index.tsx b/app/src/organisms/ChooseProtocolSlideout/index.tsx index 31a7bc68eba..74995a9cc98 100644 --- a/app/src/organisms/ChooseProtocolSlideout/index.tsx +++ b/app/src/organisms/ChooseProtocolSlideout/index.tsx @@ -214,9 +214,7 @@ export function ChooseProtocolSlideoutComponent( } return parameter }) - if (setRunTimeParametersOverrides != null) { - setRunTimeParametersOverrides(clone) - } + setRunTimeParametersOverrides(clone) }} title={runtimeParam.displayName} caption={runtimeParam.description} @@ -267,9 +265,7 @@ export function ChooseProtocolSlideoutComponent( } return parameter }) - if (setRunTimeParametersOverrides != null) { - setRunTimeParametersOverrides(clone) - } + setRunTimeParametersOverrides(clone) }} /> ) @@ -305,9 +301,7 @@ export function ChooseProtocolSlideoutComponent( return parameter } ) - if (setRunTimeParametersOverrides != null) { - setRunTimeParametersOverrides(clone) - } + setRunTimeParametersOverrides(clone) }} height="0.813rem" label={ @@ -344,9 +338,7 @@ export function ChooseProtocolSlideoutComponent( ...parameter, value: parameter.default, })) - if (setRunTimeParametersOverrides != null) { - setRunTimeParametersOverrides(clone) - } + setRunTimeParametersOverrides(clone) }} paddingBottom={SPACING.spacing10} {...targetProps}