File tree 1 file changed +5
-4
lines changed
1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -59,6 +59,7 @@ const MarkdownEditorContainer: React.FC<MarkdownEditorContainerProps> = () => {
59
59
initialBody,
60
60
initialTitle,
61
61
tags,
62
+ isPrivate,
62
63
} = useSelector ( ( state : RootState ) => state . write ) ;
63
64
const uncachedClient = useUncachedApolloClient ( ) ;
64
65
const [ writePost , { loading : isWritePostLoading } ] =
@@ -193,8 +194,8 @@ const MarkdownEditorContainer: React.FC<MarkdownEditorContainerProps> = () => {
193
194
title,
194
195
body : markdown ,
195
196
is_markdown : true ,
196
- is_temp : true ,
197
- is_private : false ,
197
+ is_temp : isTemp ,
198
+ is_private : isPrivate ,
198
199
url_slug : escapeForUrl ( title ) ,
199
200
thumbnail : null ,
200
201
meta : { } ,
@@ -233,7 +234,6 @@ const MarkdownEditorContainer: React.FC<MarkdownEditorContainerProps> = () => {
233
234
dispatch ,
234
235
editPost ,
235
236
history ,
236
- isTemp ,
237
237
lastSavedData ,
238
238
markdown ,
239
239
postId ,
@@ -242,6 +242,7 @@ const MarkdownEditorContainer: React.FC<MarkdownEditorContainerProps> = () => {
242
242
writePost ,
243
243
isWritePostLoading ,
244
244
isEditPostLoading ,
245
+ isTemp ,
245
246
] ,
246
247
) ;
247
248
@@ -310,7 +311,7 @@ const MarkdownEditorContainer: React.FC<MarkdownEditorContainerProps> = () => {
310
311
const timeoutId = setTimeout ( ( ) => {
311
312
if ( ! postId && ! title && markdown . length < 30 ) return ;
312
313
onTempSave ( true ) ;
313
- } , 10 * 1000 ) ;
314
+ } , 1000 * 10 ) ;
314
315
315
316
return ( ) => {
316
317
clearTimeout ( timeoutId ) ;
You can’t perform that action at this time.
0 commit comments