lesscode
This commit is contained in:
parent
2ee57a1dcc
commit
1fa5fbd1a5
|
@ -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,
|
||||
})
|
||||
|
|
Loading…
Reference in New Issue
Block a user