Refresh ThreadView after React state has been updated (#7539)

This commit is contained in:
Germain
2022-01-14 12:49:25 +00:00
committed by GitHub
parent de28d82b81
commit 240cb10415

View File

@@ -165,11 +165,11 @@ export default class ThreadView extends React.Component<IProps, IState> {
if (thread && this.state.thread !== thread) { if (thread && this.state.thread !== thread) {
this.setState({ this.setState({
thread, thread,
}, () => {
thread.emit(ThreadEvent.ViewThread);
this.timelinePanelRef.current?.refreshTimeline();
}); });
thread.emit(ThreadEvent.ViewThread);
} }
this.timelinePanelRef.current?.refreshTimeline();
}; };
private onScroll = (): void => { private onScroll = (): void => {