diff --git a/src/skins/vector/views/molecules/MNoticeTile.js b/src/skins/vector/views/molecules/MNoticeTile.js index d173c728f..a0cedb1dd 100644 --- a/src/skins/vector/views/molecules/MNoticeTile.js +++ b/src/skins/vector/views/molecules/MNoticeTile.js @@ -36,6 +36,7 @@ module.exports = React.createClass({ render: function() { var content = this.props.mxEvent.getContent(); var originalBody = content.body; + var body; if (this.props.searchTerm) { var lastOffset = 0; diff --git a/src/skins/vector/views/molecules/MTextTile.js b/src/skins/vector/views/molecules/MTextTile.js index 626ee5b90..12bafa37b 100644 --- a/src/skins/vector/views/molecules/MTextTile.js +++ b/src/skins/vector/views/molecules/MTextTile.js @@ -36,6 +36,7 @@ module.exports = React.createClass({ render: function() { var content = this.props.mxEvent.getContent(); var originalBody = content.body; + var body; if (this.props.searchTerm) { var lastOffset = 0;