Skip to content

Commit 7b12629

Browse files
committed
code refactorin in basic and advance chart
1 parent 3aa005b commit 7b12629

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/components/charts/AdvancedConfig.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ const AdvancedConfig: React.FC<AdvancedConfig> = ({ chart, index, fetchChartValu
152152
data-testid="advanced-option-app-name-box"
153153
isRequiredField={true}
154154
error={appName?.error}
155-
additionalErrorInfo={appName?.error && appName?.suggestedName && renderAdditionalErrorInfo(handleNameChange, appName.suggestedName, index)}
155+
additionalErrorInfo={appName?.error && renderAdditionalErrorInfo(handleNameChange, appName.suggestedName, index)}
156156
/>
157157
</div>}
158158
{handleEnvironmentChange && <div className="flex top mb-16">

src/components/charts/modal/ChartGroupBasicDeploy.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ function ApplicationNameList({ charts, handleNameChange, showAppNames }) {
222222
}}
223223
error={chart.name.error}
224224
isRequiredField={true}
225-
additionalErrorInfo={renderAdditionalErrorInfo(handleNameChange, chart.name.suggestedNam, index)}
225+
additionalErrorInfo={chart.name.error ? chart.name.error : 'no'}
226226
/>
227227
</div>
228228
</div>

0 commit comments

Comments
 (0)