mirror of
https://github.com/vector-im/element-web.git
synced 2024-11-16 05:04:57 +08:00
Merge pull request #3606 from matrix-org/travis/edit-history
Use a ternary operator instead of relying on AND semantics in EditHistoryDialog
This commit is contained in:
commit
df1d5055c0
@ -116,7 +116,7 @@ export default class MessageEditHistoryDialog extends React.PureComponent {
|
||||
nodes.push((
|
||||
<EditHistoryMessage
|
||||
key={e.getId()}
|
||||
previousEdit={!isBaseEvent && allEvents[i + 1]}
|
||||
previousEdit={!isBaseEvent ? allEvents[i + 1] : null}
|
||||
isBaseEvent={isBaseEvent}
|
||||
mxEvent={e}
|
||||
isTwelveHour={this.state.isTwelveHour}
|
||||
|
Loading…
Reference in New Issue
Block a user