fix(git): fix more files form error [EE-5125] (#8601)

pull/8617/head
Chaim Lev-Ari 2 years ago committed by GitHub
parent e3299eddd5
commit 5f0af62521
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -35,8 +35,8 @@ function Item({
const { ref, updateCaret } = useCaretPosition();
return (
<>
<InputGroup size="small" className="col-sm-5">
<div className="relative flex flex-col">
<InputGroup size="small">
<InputGroup.Addon>path</InputGroup.Addon>
<InputGroup.Input
mRef={ref}
@ -50,7 +50,11 @@ function Item({
}}
/>
</InputGroup>
{error && <FormError>{error}</FormError>}
</>
{error && (
<div className="absolute -bottom-7">
<FormError>{error}</FormError>
</div>
)}
</div>
);
}

@ -133,7 +133,7 @@ export function buildGitValidationSchema(
ComposeFilePathInRepository: string().required(
'Compose file path is required'
),
AdditionalFiles: array(string().required()).default([]),
AdditionalFiles: array(string().required('Path is required')).default([]),
RepositoryURLValid: boolean().default(false),
AutoUpdate: autoUpdateValidation().nullable(),
}).concat(gitAuthValidation(gitCredentials));

Loading…
Cancel
Save