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

Made application text optional #1675

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

nemisis84
Copy link
Contributor

Issue:
This should be optional

image

Fix:
Made field optional in backend. Added export const OPTIONAL_NON_EMPTY_STRING to schema/strings which can be used when strings are optional.

@@ -67,6 +67,8 @@ export function RecruitmentPositionForm({ initialData, positionId, recruitmentId
gang: { id: Number.parseInt(gangId ?? '') },
recruitment: recruitmentId ?? '',
interviewer_ids: data.interviewer_ids || [],
default_application_letter_nb: data.default_application_letter_nb || '',
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Need to pass in empty string if non is provided such that OPTIONAL_NON_EMPTY_STRING accepts it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Standard application letter should be allowed to be blank
2 participants