diff --git a/app/components/SimpleEditor/panes/Comments/CommentsProvider.js b/app/components/SimpleEditor/panes/Comments/CommentsProvider.js index ba9052201435b31312cb8deee1a5cc7cf3d8f279..d4d8af2b457a03d3940cf919446b6ff95ebfc0f8 100644 --- a/app/components/SimpleEditor/panes/Comments/CommentsProvider.js +++ b/app/components/SimpleEditor/panes/Comments/CommentsProvider.js @@ -395,7 +395,8 @@ class CommentsProvider extends TocProvider { comments = _.map(comments, function (comment) { const blockId = comment.path[0] let blockPosition = container.getPosition(blockId) - if (blockPosition === -1) blockPosition = containerMini.getPosition(blockId) + if (blockPosition === -1 && containerMini) blockPosition = containerMini.getPosition(blockId) + const nodePosition = comment.start.offset return {