@@ -83,7 +83,7 @@ export const getFinalVariablesForStringInput: GetFinalVariablesFunction = (
const val = vars[props.variable] || props.settings?.default;
return {
[props.variable]:
- props.settings?.unit && !props.settings?.omitUnitFromValue
+ props.settings?.unit && (props.settings?.omitUnitFromValue === false)
? val + props.settings.unit
: val,
};
@@ -651,7 +651,6 @@ const ExpandedChart: React.FC<Props> = (props) => {
return () => (isSubscribed = false);
}, [components, currentCluster, currentProject, currentChart]);
- console.log("i see", props.currentChart.form);
return (
<>
<StyledExpandedChart>
@@ -149,7 +149,10 @@ class SettingsPage extends Component<PropsType, StateType> {
isReadOnly={
!this.props.isAuthorized("namespace", "", ["get", "create"])
}
- onSubmit={(val) => onSubmit(val)}
+ onSubmit={(val) => {
+ console.log(val)
+ onSubmit(val)
+ }}
/>
</>
);