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

comment out for now

parent 3a9d3389
No related branches found
No related tags found
1 merge request!177Fixes
......@@ -112,6 +112,7 @@ export default ({ comment, top, commentId, recalculateTops }) => {
let minPos = comment.pos;
allCommentsWithSameId.forEach(singleComment => {
console.log(singleComment.pos);
const markPosition = DocumentHelpers.findMarkPosition(
state,
singleComment.pos,
......@@ -120,10 +121,8 @@ export default ({ comment, top, commentId, recalculateTops }) => {
if (markPosition.from < minPos) minPos = markPosition.from;
if (markPosition.to > maxPos) maxPos = markPosition.to;
});
console.log(minPos, maxPos);
if (allCommentsWithSameId.length > 1);
maxPos += last(allCommentsWithSameId).node.nodeSize;
console.log(minPos, maxPos);
// if (allCommentsWithSameId.length > 1);
// maxPos += last(allCommentsWithSameId).node.nodeSize;
dispatch(state.tr.removeMark(minPos, maxPos, commentMark));
activeView.focus();
};
......
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