Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

verification body is not required #1301

Merged
merged 1 commit into from
Aug 5, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions src/renderer/components/blocks/forms/IssuancesForm.tsx
Original file line number Diff line number Diff line change
@@ -16,7 +16,7 @@ const validationSchema = yup.object({
.required('End date is required')
.min(yup.ref('startDate'), 'End date must be after the start date'),
verificationApproach: yup.string().required('Verification approach is required'),
verificationBody: yup.string().required('Verification body is required'),
verificationBody: yup.string(),
verificationReportDate: yup.date().required('Verification report date is required'),
}),
),
@@ -106,7 +106,6 @@ const IssuancesForm = forwardRef<IssuancesFormRef, IssuancesFormProps>(
freeform={true}
options={picklistOptions?.verificationBody}
readonly={readonly}
required={true}
initialValue={issuance.verificationBody || ''}
/>
<Field
2 changes: 2 additions & 0 deletions src/renderer/components/blocks/modals/UpsertProjectModal.tsx
Original file line number Diff line number Diff line change
@@ -162,6 +162,8 @@ const UpsertProjectModal: React.FC<UpsertModalProps> = ({ onClose }: UpsertModal
error: { data: { message: 'application internal state error. reload the application' } },
};

console.log(projectFormData);

if (createProjectModalActive) {
response = await triggerStageCreateProject(projectFormData);
} else if (editProjectModalActive) {