sunguroku 5 лет назад
Родитель
Сommit
14fe3df9ff

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

@@ -270,6 +270,7 @@ export default class ExpandedChart extends Component<PropsType, StateType> {
         });
         });
       })
       })
       .catch((err) => {
       .catch((err) => {
+        console.log(err)
         this.setState({ saveValuesStatus: "error" });
         this.setState({ saveValuesStatus: "error" });
         window.analytics.track("Failed to Upgrade Chart", {
         window.analytics.track("Failed to Upgrade Chart", {
           chart: this.state.currentChart.name,
           chart: this.state.currentChart.name,

+ 3 - 3
dashboard/src/main/home/launch/expanded-template/LaunchTemplate.tsx

@@ -433,9 +433,9 @@ class LaunchTemplate extends Component<PropsType, StateType> {
           }
           }
 
 
           // handle when procfileProcess is already specified
           // handle when procfileProcess is already specified
-          metaState["container.command"] = this.state.procfileProcess
-            ? this.state.procfileProcess
-            : "";
+          if (this.state.procfileProcess) {
+            metaState["container.command"] = this.state.procfileProcess
+          }
 
 
           return this.props.form?.tabs.map((tab: any, i: number) => {
           return this.props.form?.tabs.map((tab: any, i: number) => {
             // If tab is current, render
             // If tab is current, render