We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 42c151a + 4121805 commit 41806acCopy full SHA for 41806ac
app/editor/src/features/content/form/hooks/useContentForm.ts
@@ -194,15 +194,11 @@ export const useContentForm = ({
194
195
const resetForm = React.useCallback((values: IContentForm) => {
196
// Reset form for next record.
197
- const parsedDate = moment(values.publishedOn);
198
- const updatedDate = parsedDate.add(1, 'second');
199
setForm({
200
...defaultFormValues(values.contentType),
201
sourceId: values.sourceId,
202
mediaTypeId: values.mediaTypeId,
203
otherSource: values.otherSource,
204
- publishedOn: updatedDate.format('MMM D, yyyy HH:mm:ss'),
205
- publishedOnTime: updatedDate.format('HH:mm:ss'),
206
});
207
setStream(undefined);
208
}, []);
0 commit comments