WNomunomu 2 лет назад
Родитель
Сommit
72ce418429

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

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