Skip to content

Commit

Permalink
refactor: adjusted the initial value for event discipline in forms
Browse files Browse the repository at this point in the history
  • Loading branch information
AbhishekPAnil committed Jul 31, 2024
1 parent b37920e commit 60ec40b
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/pages/Dashboard/AddEvent/AddEvent.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -2341,9 +2341,7 @@ function AddEvent() {
<Form.Item
name="eventDiscipline"
label={taxonomyDetails(allTaxonomyData?.data, user, 'EventDiscipline', 'name', false)}
initialValue={eventData?.discipline?.map((type) => {
return type?.entityId;
})}
initialValue={eventData?.discipline?.map((type) => type?.entityId)}
hidden={
standardAdminOnlyFields?.includes(eventFormRequiredFieldNames?.EVENT_DISCIPLINE)
? adminCheckHandler({ calendar, user })
Expand Down

0 comments on commit 60ec40b

Please sign in to comment.