diff --git a/src/General/Index.coffee b/src/General/Index.coffee index 4399a841e..7164acd18 100644 --- a/src/General/Index.coffee +++ b/src/General/Index.coffee @@ -553,9 +553,9 @@ Index = else strong = $.el 'strong' - a = pagesRoot.children[pageNum - 1] - $.before a, strong - $.add strong, a + if (a = pagesRoot.children[pageNum - 1]) + $.before a, strong + $.add strong, a updateHideLabel: -> return unless Index.hideLabel