Skip to content

Commit ed4fcd8

Browse files
committed
fix: add dependency in useEffect array
1 parent da06390 commit ed4fcd8

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

src/containers/write/ActiveEditor.tsx

+1
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ const ActiveEditor: React.FC<ActiveEditorProps> = () => {
7777
useEffect(() => {
7878
if (!post) return;
7979
if (initialized.current) return;
80+
console.log('post.series', post.series);
8081
dispatch(
8182
prepareEdit({
8283
id: post.id,

src/containers/write/MarkdownEditorContainer.tsx

+2
Original file line numberDiff line numberDiff line change
@@ -244,6 +244,8 @@ const MarkdownEditorContainer: React.FC<MarkdownEditorContainerProps> = () => {
244244
isWritePostLoading,
245245
isEditPostLoading,
246246
isTemp,
247+
isPrivate,
248+
selectedSeries,
247249
],
248250
);
249251

0 commit comments

Comments
 (0)