Skip to content

Commit

Permalink
remove linting error
Browse files Browse the repository at this point in the history
  • Loading branch information
rishishah-multidots committed Oct 3, 2024
1 parent c5a53a2 commit c0aee07
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/editor/src/components/collab-sidebar/comments.js
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ export function Comments( {
*/
function CommentForm( { onSubmit, onCancel, thread } ) {
const [ inputComment, setInputComment ] = useState(
thread?.content?.rendered.replace(/<[^>]*>/g, '') ?? ''
thread?.content?.rendered.replace( /<[^>]*>/g, '' ) ?? ''
);

return (
Expand Down
4 changes: 2 additions & 2 deletions packages/editor/src/components/collab-sidebar/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ export default function CollabSidebar() {

// Function to save the comment.
const addNewComment = async ( comment, parentCommentId ) => {
const sanitisedComment = comment.replace(/<[^>]*>/g, '');
const sanitisedComment = comment.replace( /<[^>]*>/g, '' );

const args = {
post: postId,
Expand Down Expand Up @@ -144,7 +144,7 @@ export default function CollabSidebar() {
};

const onEditComment = async ( commentId, comment ) => {
const editedComment = comment.replace(/<[^>]*>/g, '');
const editedComment = comment.replace( /<[^>]*>/g, '' );

const savedRecord = await saveEntityRecord( 'root', 'comment', {
id: commentId,
Expand Down

0 comments on commit c0aee07

Please sign in to comment.