Skip to content

Commit

Permalink
fix crash on PostCreate
Browse files Browse the repository at this point in the history
  • Loading branch information
rtrembecky committed Nov 24, 2024
1 parent d19bca8 commit a91d322
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/Admin/resources/cms/post/PostCreate.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export const PostCreate: FC = () => {
<TextInput source="caption" fullWidth validate={required()} />
<TextInput source="short_text" fullWidth validate={maxLength(200, 'Text musí mať najviac 200 znakov.')} />
<TextInput source="details" multiline fullWidth />
<MyDateTimeInput source="added_at" fullWidth disabled defaultValue={new Date().toISOString()} />
{/* <MyDateTimeInput source="added_at" fullWidth disabled /> */}
<MyDateTimeInput source="visible_after" fullWidth validate={required()} />
<MyDateTimeInput source="visible_until" fullWidth validate={required()} />
<SitesCheckboxInput source="sites" validate={required()} />
Expand Down

0 comments on commit a91d322

Please sign in to comment.