mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-06-03 22:29:01 +02:00
Fix isRequired error in GoToCodeButton.propTypes (#6646)
Skip `PdfSynctexControls` rendering until `position` is set GitOrigin-RevId: ea40c7f98ea3bbdf3d8689175658d2c014b68436
This commit is contained in:
@@ -312,6 +312,10 @@ function PdfSynctexControls() {
|
||||
}
|
||||
}, [syncToCode])
|
||||
|
||||
if (!position) {
|
||||
return null
|
||||
}
|
||||
|
||||
if (!pdfExists || pdfViewer === 'native') {
|
||||
return null
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user