Skip to content

Commit

Permalink
Remove unneceseary code
Browse files Browse the repository at this point in the history
  • Loading branch information
vgeffer committed Dec 15, 2024
1 parent a8660b6 commit 6afec26
Showing 1 changed file with 1 addition and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,7 @@ import {MyCreate} from '@/components/Admin/custom/MyCreate'
import {MyDateTimeInput} from '@/components/Admin/custom/MyDateTimeInput'

export const SeriesCreate: FC = () => (
<MyCreate
transform={(record) => {
// automaticky sa na BE posiela cely record, ale BE read_only (aj neexistujuce) fieldy ignoruje
// radsej z payloadu odstranime aspon sety
delete record.problems
return record
}}
>
<MyCreate>
<TabbedForm>
<FormTab label="content.labels.general">
<ReferenceInput source="semester" reference="competition/semester">
Expand Down

0 comments on commit 6afec26

Please sign in to comment.