Fixed MATTERMOST-MOBILE-ANDROID-85 (#1565)
This commit is contained in:
parent
097244692c
commit
868e4b8ad6
1 changed files with 1 additions and 1 deletions
|
|
@ -361,7 +361,7 @@ export default class Markdown extends PureComponent {
|
|||
|
||||
if (this.props.isEdited) {
|
||||
const editIndicatorNode = new Node('edited_indicator');
|
||||
if (['heading', 'paragraph'].includes(ast.lastChild.type)) {
|
||||
if (ast.lastChild && ['heading', 'paragraph'].includes(ast.lastChild.type)) {
|
||||
ast.lastChild.appendChild(editIndicatorNode);
|
||||
} else {
|
||||
const node = new Node('paragraph');
|
||||
|
|
|
|||
Loading…
Reference in a new issue