diff --git a/src/skins/vector/views/molecules/MNoticeTile.js b/src/skins/vector/views/molecules/MNoticeTile.js index d173c728fc..a0cedb1ddd 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 626ee5b907..12bafa37ba 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;