Skip to content
Snippets Groups Projects
Commit 3ce4274d authored by chris's avatar chris Committed by john
Browse files

comment fix

parent 3e9accbe
No related branches found
No related tags found
No related merge requests found
......@@ -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 {
......
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