Skip to content

Take control over your live stream video by running it yourself. Streaming + chat out of the box.

Fixed Slate error by providing initial value

t1enne97b343d814e5
diff --git a/web/components/chat/ChatTextField/ChatTextField.tsx b/web/components/chat/ChatTextField/ChatTextField.tsx
index 2ce05d6173..3f2d82107c 100644
--- a/web/components/chat/ChatTextField/ChatTextField.tsx
+++ b/web/components/chat/ChatTextField/ChatTextField.tsx
@@ -144,7 +144,11 @@ export default function ChatTextField(props: Props) {
return (
<div className={s.root}>
- <Slate editor={editor} value={[]} onChange={handleChange}>
+ <Slate
+ editor={editor}
+ value={[{ type: 'paragraph', children: [{ text: '' }] }]}
+ onChange={handleChange}
+ >
<Editable
onKeyDown={onKeyDown}
renderElement={p => <Element {...p} />}