null-guard savedState since now we're accessing its props
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
parent
3e05bf19c5
commit
b4bc09c335
1 changed files with 2 additions and 2 deletions
|
@ -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)
|
// the currently displayed editor state (note: this is always what is modified on input)
|
||||||
editorState: this.createEditorState(
|
editorState: this.createEditorState(
|
||||||
isRichTextEnabled,
|
isRichTextEnabled,
|
||||||
savedState.editor_state,
|
savedState ? savedState.editor_state : undefined,
|
||||||
savedState.rich_text,
|
savedState ? savedState.rich_text : undefined,
|
||||||
),
|
),
|
||||||
|
|
||||||
// the original editor state, before we started tabbing through completions
|
// the original editor state, before we started tabbing through completions
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue