Skip to content

Commit 12f7c8a

Browse files
committed
chore: revert validator
1 parent d499def commit 12f7c8a

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/Shared/validations.tsx

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -474,8 +474,11 @@ export const validateCMVolumeMountPath = (value: string): { isValid: boolean; me
474474

475475
export const validateYAML = (yamlString: string, isRequired?: boolean): ValidationResponseType => {
476476
try {
477-
if (isRequired) {
478-
requiredField(yamlString)
477+
if (!yamlString && isRequired) {
478+
return {
479+
isValid: false,
480+
message: 'This field is required',
481+
}
479482
}
480483
parse(yamlString)
481484
return {

0 commit comments

Comments
 (0)