Browse Source

refactor useCallback dependency

yuken 3 years ago
parent
commit
0fb674babb
1 changed files with 2 additions and 1 deletions
  1. 2 1
      packages/app/src/components/PageComment/CommentEditor.tsx

+ 2 - 1
packages/app/src/components/PageComment/CommentEditor.tsx

@@ -189,8 +189,9 @@ const CommentEditor = (props: PropsType): JSX.Element => {
       setError(errorMessage);
     }
   }, [
-    comment, currentCommentId, commentCreator, initializeEditor,
+    comment, currentCommentId, initializeEditor,
     isSlackEnabled, onCommentButtonClicked, replyTo, slackChannels,
+    postComment, revisionId, updateComment,
   ]);
 
   const ctrlEnterHandler = useCallback((event) => {