From 9b39b1c226222b7081b3889d8081d87bc8d2a976 Mon Sep 17 00:00:00 2001 From: akasunil Date: Tue, 19 Nov 2024 16:32:29 +0530 Subject: [PATCH] Update comment for new arguments of comments component --- packages/editor/src/components/collab-sidebar/comments.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/packages/editor/src/components/collab-sidebar/comments.js b/packages/editor/src/components/collab-sidebar/comments.js index 81556663d0104..f9f7cee8339cc 100644 --- a/packages/editor/src/components/collab-sidebar/comments.js +++ b/packages/editor/src/components/collab-sidebar/comments.js @@ -35,8 +35,8 @@ import CommentForm from './comment-form'; * @param {Function} props.onAddReply - The function to add a reply to a comment. * @param {Function} props.onCommentDelete - The function to delete a comment. * @param {Function} props.onCommentResolve - The function to mark a comment as resolved. - * @param {boolean} props.showCommentBoard - The function to edit the comment. - * @param {Function} props.setShowCommentBoard - The function to delete the comment. + * @param {boolean} props.showCommentBoard - Whether to show the comment board. + * @param {Function} props.setShowCommentBoard - The function to set the comment board visibility. * @return {JSX.Element} The rendered Comments component. */ export function Comments( { @@ -248,6 +248,7 @@ export function Comments( { thread.id ); setActionState( false ); + setShowCommentBoard( false ); } } onCancel={ () => { setActionState( false );