Fix isRequired error in GoToCodeButton.propTypes (#6646)

Skip `PdfSynctexControls` rendering until `position` is set

GitOrigin-RevId: ea40c7f98ea3bbdf3d8689175658d2c014b68436
This commit is contained in:
Miguel Serrano 2022-02-14 15:20:06 +01:00 committed by Copybot
parent fa55598c82
commit a3b01659a4

View file

@ -312,6 +312,10 @@ function PdfSynctexControls() {
}
}, [syncToCode])
if (!position) {
return null
}
if (!pdfExists || pdfViewer === 'native') {
return null
}