fix(editor): Set placeholder fallback

Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
This commit is contained in:
Tilman Vatteroth 2022-10-31 12:33:10 +01:00
parent 6cbd8d68c5
commit 410e5b2222

View file

@ -141,7 +141,7 @@ export const EditorPane: React.FC<ScrollProps> = ({ scrollState, onScroll, onMak
<ToolBar />
<ReactCodeMirror
editable={firstUpdateHappened && connectionSynced}
placeholder={t('editor.placeholder')}
placeholder={t('editor.placeholder') ?? ''}
extensions={extensions}
width={'100%'}
height={'100%'}