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) {
|
||||
this.setState({
|
||||
thread,
|
||||
}, () => {
|
||||
thread.emit(ThreadEvent.ViewThread);
|
||||
this.timelinePanelRef.current?.refreshTimeline();
|
||||
});
|
||||
thread.emit(ThreadEvent.ViewThread);
|
||||
}
|
||||
|
||||
this.timelinePanelRef.current?.refreshTimeline();
|
||||
};
|
||||
|
||||
private onScroll = (): void => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue