Skip to content

Commit c17ab38

Browse files
committed
fix: check newPost instead
1 parent eef54d1 commit c17ab38

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/containers/write/ActiveEditor.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ const ActiveEditor: React.FC<ActiveEditorProps> = () => {
132132
}, [dispatch, lastPostHistory, post]);
133133

134134
if (
135-
id &&
135+
!newPost &&
136136
((!readPostForEdit.loading && post === null) ||
137137
(post && post.user.id !== userId))
138138
) {

0 commit comments

Comments
 (0)