add DEBUG env
@@ -1025,10 +1025,10 @@ class ComponentLikeFormRaw extends React.PureComponent<Props, State> {
if (
submitFailed &&
((tab === Configurations && (syncErrors.preInjectedFiles || syncErrors.env || syncErrors.command)) ||
- (tab === Disks && (syncErrors.cpu || syncErrors.memory || syncErrors.volumes)) ||
+ (tab === Disks && syncErrors.volumes) ||
(tab === Health && (syncErrors.livenessProbe || syncErrors.ReadinessProbe)) ||
(tab === Networking && syncErrors.ports) ||
- (tab === Scheduling && syncErrors.nodeSelectorLabels))
+ (tab === Scheduling && (syncErrors.cpu || syncErrors.memory || syncErrors.nodeSelectorLabels)))
) {
return <Tab key={tab} label={tab} className={classes.hasError} />;
}
@@ -1136,7 +1136,8 @@ class ComponentLikeFormRaw extends React.PureComponent<Props, State> {
}
/>
</Box>
- {/* <pre style={{ maxWidth: 1500, background: "#eee" }}>
+ {process.env.REACT_APP_DEBUG ? (
+ <pre style={{ maxWidth: 1500, background: "#eee" }}>
{JSON.stringify(
(this.props.values as any)
.delete("metrics")
@@ -1145,7 +1146,8 @@ class ComponentLikeFormRaw extends React.PureComponent<Props, State> {
undefined,
2
)}
- </pre> */}
+ </pre>
+ ) : null}
{/* <div className={`${classes.formSection} ${currentTabIndex === "advanced" ? "" : ""}`}>{this.renderPlugins()}</div> */}
{this.renderDeployButton()}
</form>
