set state in ctor
This commit is contained in:
parent
f4b86ca265
commit
39c96b15d8
1 changed files with 4 additions and 3 deletions
|
@ -27,13 +27,14 @@ export default class MessageEditHistoryDialog extends React.Component {
|
|||
mxEvent: PropTypes.object.isRequired,
|
||||
};
|
||||
|
||||
componentWillMount() {
|
||||
this.setState({
|
||||
constructor(props) {
|
||||
super(props);
|
||||
this.state = {
|
||||
events: [],
|
||||
nextBatch: null,
|
||||
isLoading: true,
|
||||
isTwelveHour: SettingsStore.getValue("showTwelveHourTimestamps"),
|
||||
});
|
||||
};
|
||||
}
|
||||
|
||||
loadMoreEdits = async (backwards) => {
|
||||
|
|
Loading…
Reference in a new issue