recover form
This commit is contained in:
parent
275a8431cd
commit
c794b9cb91
|
@ -125,9 +125,18 @@ export const EditorProvider = (props: { children: JSX.Element }) => {
|
||||||
return await apiClient.updateArticle({
|
return await apiClient.updateArticle({
|
||||||
shout_id: formToUpdate.shoutId,
|
shout_id: formToUpdate.shoutId,
|
||||||
shout_input: {
|
shout_input: {
|
||||||
...formToUpdate,
|
body: formToUpdate.body,
|
||||||
topics: formToUpdate.selectedTopics.map((topic) => topic2topicInput(topic)), // NOTE: first is main
|
topics: formToUpdate.selectedTopics.map((topic) => topic2topicInput(topic)), // NOTE: first is main
|
||||||
|
// authors?: InputMaybe<Array<InputMaybe<Scalars['String']>>>
|
||||||
|
// community?: InputMaybe<Scalars['Int']>
|
||||||
|
// mainTopic: topic2topicInput(formToUpdate.mainTopic),
|
||||||
|
slug: formToUpdate.slug,
|
||||||
|
subtitle: formToUpdate.subtitle,
|
||||||
|
title: formToUpdate.title,
|
||||||
|
lead: formToUpdate.lead,
|
||||||
|
description: formToUpdate.description,
|
||||||
cover: formToUpdate.coverImageUrl,
|
cover: formToUpdate.coverImageUrl,
|
||||||
|
media: formToUpdate.media,
|
||||||
},
|
},
|
||||||
publish,
|
publish,
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in New Issue
Block a user