mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-05-23 17:19:37 +02:00
Fix optional chaining for file extension retrieval in EditorSwitch
GitOrigin-RevId: 9aeee2f856c4f4dadc38affecc06179b61267af0
This commit is contained in:
committed by
Copybot
parent
a7621a99c4
commit
f078929b25
@@ -17,7 +17,7 @@ function EditorSwitch() {
|
||||
const richTextAvailable = openDocName
|
||||
? isVisualEditorAvailable(openDocName)
|
||||
: false
|
||||
const extension = getFileExtension(openDocName || '')
|
||||
const extension = getFileExtension(openDocName || '') ?? ''
|
||||
|
||||
const handleChange = useCallback(
|
||||
(event: ChangeEvent<HTMLInputElement>) => {
|
||||
|
||||
Reference in New Issue
Block a user