Skip to content
Snippets Groups Projects
Commit 537b1d16 authored by chris's avatar chris
Browse files

remove console log

parent 671c8643
No related branches found
No related tags found
1 merge request!548Merge yjs with standard comments
......@@ -26,10 +26,7 @@ export default class CommentsService extends Service {
existingComments: () => {
const doc = new Y.Doc();
const map = doc.getMap('prosemirror-demo');
// const ymapNested = new Y.Map();
// map.set('my nested map', ymapNested);
if (commentsConfig.setComments().length > 0) {
console.log('how many');
commentsConfig.setComments().forEach(value => {
map.set(value.id, value);
});
......
......@@ -64,11 +64,6 @@ export default class CommentState {
if (binding) {
map.forEach((annotation, id) => {
console.log(
'hello annotation',
annotation.from,
typeof annotation.from === 'number',
);
if (typeof annotation.from === 'number') {
annotation.from = absolutePositionToRelativePosition(
annotation.from,
......@@ -183,7 +178,7 @@ export default class CommentState {
const ystate = ySyncPluginKey.getState(state);
if (ystate.isChangeOrigin) {
this.updateCommentPostions(ystate);
// this.updateCommentPostions(ystate);
this.createDecorations(state);
return this;
......@@ -198,7 +193,6 @@ export default class CommentState {
this.updateCommentPostions(ystate);
return this;
}
this.createDecorations(state);
return this;
}
}
......
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