You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-22 04:02:40 +03:00
null-guard savedState since now we're accessing its props
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
@@ -298,8 +298,8 @@ export default class MessageComposerInput extends React.Component {
|
||||
// the currently displayed editor state (note: this is always what is modified on input)
|
||||
editorState: this.createEditorState(
|
||||
isRichTextEnabled,
|
||||
savedState.editor_state,
|
||||
savedState.rich_text,
|
||||
savedState ? savedState.editor_state : undefined,
|
||||
savedState ? savedState.rich_text : undefined,
|
||||
),
|
||||
|
||||
// the original editor state, before we started tabbing through completions
|
||||
|
||||
Reference in New Issue
Block a user