Reduce code duplication

pull/21833/head
Travis Ralston 2021-03-23 18:17:41 -06:00
parent fa54ca615a
commit 2f2bb9456f
1 changed files with 0 additions and 2 deletions

View File

@ -540,8 +540,6 @@ export default class MessagePanel extends React.Component {
if (!grouper) { if (!grouper) {
const wantTile = this._shouldShowEvent(mxEv); const wantTile = this._shouldShowEvent(mxEv);
if (wantTile) { if (wantTile) {
const {nextEvent, nextTile} = this._getNextEventInfo(this.props.events, i);
// make sure we unpack the array returned by _getTilesForEvent, // make sure we unpack the array returned by _getTilesForEvent,
// otherwise react will auto-generate keys and we will end up // otherwise react will auto-generate keys and we will end up
// replacing all of the DOM elements every time we paginate. // replacing all of the DOM elements every time we paginate.