mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
avoid exception in pdf viewer when no visible pages
This commit is contained in:
parent
d8c11a0824
commit
d53fa5de47
1 changed files with 15 additions and 14 deletions
|
@ -275,6 +275,7 @@ define [
|
||||||
|
|
||||||
getExtraPages = (visiblePages) ->
|
getExtraPages = (visiblePages) ->
|
||||||
extra = []
|
extra = []
|
||||||
|
if visiblePages.length > 0
|
||||||
firstVisiblePage = visiblePages[0].pageNum
|
firstVisiblePage = visiblePages[0].pageNum
|
||||||
firstVisiblePageIdx = firstVisiblePage - 1
|
firstVisiblePageIdx = firstVisiblePage - 1
|
||||||
len = visiblePages.length
|
len = visiblePages.length
|
||||||
|
|
Loading…
Reference in a new issue