Skip to content
Snippets Groups Projects
Commit 607fc724 authored by chris's avatar chris
Browse files

add console logs

parent b9240de8
No related branches found
No related tags found
No related merge requests found
Pipeline #59991 passed with stages
in 5 minutes and 47 seconds
......@@ -38,7 +38,7 @@ const CommentBubbleComponent = ({ setPosition, position, group }) => {
if (context.app.config.get('config.YjsService')) {
return createYjsComments(selection);
}
console.log('here?');
dispatch(
state.tr.setMeta(CommentDecorationPluginKey, {
type: 'addComment',
......
......@@ -10,7 +10,7 @@ const getComment = (state, context) => {
options: { comments },
} = context;
if (!comments?.length) return;
console.log(comments);
let commentData = comments.filter(comment =>
inRange(state.selection.from, comment.data.pmFrom, comment.data.pmTo),
);
......@@ -23,6 +23,7 @@ const getComment = (state, context) => {
(state.selection.from === state.selection.to &&
last(commentData).data.conversation.length !== 0)
) {
console.log(last(commentData));
return last(commentData);
}
return undefined;
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment