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

Removed validation from additional_info #331

Merged
Merged
Show file tree
Hide file tree
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
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export const EventCreate: FC = () => {
<TextInput source="registration_link.url" fullWidth validate={required()} />
<DateTimeInput source="registration_link.start" fullWidth validate={required()} />
<DateTimeInput source="registration_link.end" fullWidth validate={required()} />
<TextInput source="registration_link.additional_info" fullWidth validate={required()} />
<TextInput source="registration_link.additional_info" fullWidth />
</>
</Labeled>
)}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export const EventEdit: FC = () => {
<TextInput source="registration_link.url" fullWidth validate={required()} />
<DateTimeInput source="registration_link.start" fullWidth validate={required()} />
<DateTimeInput source="registration_link.end" fullWidth validate={required()} />
<TextInput source="registration_link.additional_info" fullWidth validate={required()} />
<TextInput source="registration_link.additional_info" fullWidth />
</>
</Labeled>
)}
Expand Down
2 changes: 1 addition & 1 deletion src/types/api/competition.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export interface RegistrationLink {
url: string
start: string
end: string
additional_info: string
additional_info: string | null
event: Event
}

Expand Down
2 changes: 1 addition & 1 deletion src/types/api/generated/competition.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export interface RegistrationLink {
url: string
start: string
end: string
additional_info: string
additional_info: string | null
event: any
}

Expand Down
Loading