set state in ctor
parent
f4b86ca265
commit
39c96b15d8
|
@ -27,13 +27,14 @@ export default class MessageEditHistoryDialog extends React.Component {
|
||||||
mxEvent: PropTypes.object.isRequired,
|
mxEvent: PropTypes.object.isRequired,
|
||||||
};
|
};
|
||||||
|
|
||||||
componentWillMount() {
|
constructor(props) {
|
||||||
this.setState({
|
super(props);
|
||||||
|
this.state = {
|
||||||
events: [],
|
events: [],
|
||||||
nextBatch: null,
|
nextBatch: null,
|
||||||
isLoading: true,
|
isLoading: true,
|
||||||
isTwelveHour: SettingsStore.getValue("showTwelveHourTimestamps"),
|
isTwelveHour: SettingsStore.getValue("showTwelveHourTimestamps"),
|
||||||
});
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
loadMoreEdits = async (backwards) => {
|
loadMoreEdits = async (backwards) => {
|
||||||
|
|
Loading…
Reference in New Issue