Skip to content

Commit a5fb57b

Browse files
committed
fix: add setLastSavedData when temp saving unreleased post
1 parent eb46db3 commit a5fb57b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/containers/write/MarkdownEditorContainer.tsx

+4
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,10 @@ const MarkdownEditorContainer: React.FC<MarkdownEditorContainerProps> = () => {
189189

190190
// tempsaving unreleased post:
191191
if (isTemp && postId) {
192+
setLastSavedData({
193+
title,
194+
body: markdown,
195+
});
192196
await editPost({
193197
variables: {
194198
id: postId,

0 commit comments

Comments
 (0)