Refresh ThreadView after React state has been updated (#7539)
This commit is contained in:
parent
de28d82b81
commit
240cb10415
1 changed files with 3 additions and 3 deletions
|
@ -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);
|
thread.emit(ThreadEvent.ViewThread);
|
||||||
}
|
|
||||||
|
|
||||||
this.timelinePanelRef.current?.refreshTimeline();
|
this.timelinePanelRef.current?.refreshTimeline();
|
||||||
|
});
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
private onScroll = (): void => {
|
private onScroll = (): void => {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue