mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-29 12:03:33 -05:00
Fix isRequired
error in GoToCodeButton.propTypes
(#6646)
Skip `PdfSynctexControls` rendering until `position` is set GitOrigin-RevId: ea40c7f98ea3bbdf3d8689175658d2c014b68436
This commit is contained in:
parent
fa55598c82
commit
a3b01659a4
1 changed files with 4 additions and 0 deletions
|
@ -312,6 +312,10 @@ function PdfSynctexControls() {
|
||||||
}
|
}
|
||||||
}, [syncToCode])
|
}, [syncToCode])
|
||||||
|
|
||||||
|
if (!position) {
|
||||||
|
return null
|
||||||
|
}
|
||||||
|
|
||||||
if (!pdfExists || pdfViewer === 'native') {
|
if (!pdfExists || pdfViewer === 'native') {
|
||||||
return null
|
return null
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue