jusrhee 4 лет назад
Родитель
Сommit
0983e8ec59

+ 1 - 1
dashboard/src/components/form-refactor/field-components/Input.tsx

@@ -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,
   };

+ 0 - 1
dashboard/src/main/home/cluster-dashboard/expanded-chart/ExpandedChart.tsx

@@ -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>

+ 4 - 1
dashboard/src/main/home/launch/launch-flow/SettingsPage.tsx

@@ -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)
+            }}
           />
         </>
       );