This commit is contained in:
Untone 2024-02-02 21:03:55 +03:00
parent 2ee57a1dcc
commit 1fa5fbd1a5

View File

@ -124,18 +124,10 @@ export const EditorProvider = (props: { children: JSX.Element }) => {
return await apiClient.updateArticle({
shoutId: formToUpdate.shoutId,
shoutInput: {
body: formToUpdate.body,
...formToUpdate,
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,
media: formToUpdate.media,
cover: formToUpdate.coverImageUrl,
},
publish,
})