Skip to content

Commit cc657d2

Browse files
authored
Merge pull request velopert#134 from velopert/fix/save-post-with-tags
TempSave post with tags - Fix velopert#66
2 parents 99757c5 + c40b13a commit cc657d2

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/containers/write/MarkdownEditorContainer.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ const MarkdownEditorContainer: React.FC<MarkdownEditorContainerProps> = () => {
5757
isTemp,
5858
initialBody,
5959
initialTitle,
60+
tags,
6061
} = useSelector((state: RootState) => state.write);
6162
const [writePost] = useMutation<WritePostResponse>(WRITE_POST);
6263
const [createPostHistory] = useMutation<CreatePostHistoryResponse>(
@@ -168,7 +169,7 @@ const MarkdownEditorContainer: React.FC<MarkdownEditorContainerProps> = () => {
168169
variables: {
169170
title,
170171
body: markdown,
171-
tags: [],
172+
tags,
172173
is_markdown: true,
173174
is_temp: true,
174175
is_private: false,
@@ -199,7 +200,7 @@ const MarkdownEditorContainer: React.FC<MarkdownEditorContainerProps> = () => {
199200
thumbnail: null,
200201
meta: {},
201202
series_id: null,
202-
tags: [],
203+
tags,
203204
},
204205
});
205206
notifySuccess();
@@ -234,6 +235,7 @@ const MarkdownEditorContainer: React.FC<MarkdownEditorContainerProps> = () => {
234235
lastSavedData,
235236
markdown,
236237
postId,
238+
tags,
237239
title,
238240
writePost,
239241
],

0 commit comments

Comments
 (0)