diff --git a/src/context/editor.tsx b/src/context/editor.tsx index 049a7e84..3a9bc07e 100644 --- a/src/context/editor.tsx +++ b/src/context/editor.tsx @@ -125,9 +125,18 @@ export const EditorProvider = (props: { children: JSX.Element }) => { return await apiClient.updateArticle({ shout_id: formToUpdate.shoutId, shout_input: { - ...formToUpdate, + body: formToUpdate.body, topics: formToUpdate.selectedTopics.map((topic) => topic2topicInput(topic)), // NOTE: first is main + // authors?: InputMaybe>> + // community?: InputMaybe + // mainTopic: topic2topicInput(formToUpdate.mainTopic), + slug: formToUpdate.slug, + subtitle: formToUpdate.subtitle, + title: formToUpdate.title, + lead: formToUpdate.lead, + description: formToUpdate.description, cover: formToUpdate.coverImageUrl, + media: formToUpdate.media, }, publish, })