WNomunomu 2 лет назад
Родитель
Сommit
72ce418429
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      packages/editor/src/components/CodeMirrorEditor/Toolbar/EmojiButton.tsx

+ 1 - 1
packages/editor/src/components/CodeMirrorEditor/Toolbar/EmojiButton.tsx

@@ -73,7 +73,7 @@ export const EmojiButton: FC<Props> = (props) => {
   const view = codeMirrorEditor?.view;
   const view = codeMirrorEditor?.view;
 
 
   if (view == null) {
   if (view == null) {
-    return '';
+    return <></>;
   }
   }
 
 
   const cursorIndex = view?.state.selection.main.head;
   const cursorIndex = view?.state.selection.main.head;