We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dbd7ae6 commit d499defCopy full SHA for d499def
src/Shared/validations.tsx
@@ -474,11 +474,8 @@ export const validateCMVolumeMountPath = (value: string): { isValid: boolean; me
474
475
export const validateYAML = (yamlString: string, isRequired?: boolean): ValidationResponseType => {
476
try {
477
- if (!yamlString && isRequired) {
478
- return {
479
- isValid: false,
480
- message: 'Empty yaml string',
481
- }
+ if (isRequired) {
+ requiredField(yamlString)
482
}
483
parse(yamlString)
484
return {
0 commit comments