Fix destructuring when threads has no server support (#7976)
This commit is contained in:
parent
86329012f3
commit
84bd136657
1 changed files with 4 additions and 2 deletions
|
@ -186,8 +186,10 @@ export default class ThreadView extends React.Component<IProps, IState> {
|
||||||
}, async () => {
|
}, async () => {
|
||||||
thread.emit(ThreadEvent.ViewThread);
|
thread.emit(ThreadEvent.ViewThread);
|
||||||
if (!thread.initialEventsFetched) {
|
if (!thread.initialEventsFetched) {
|
||||||
const { nextBatch } = await thread.fetchInitialEvents();
|
const response = await thread.fetchInitialEvents();
|
||||||
this.nextBatch = nextBatch;
|
if (response?.nextBatch) {
|
||||||
|
this.nextBatch = response.nextBatch;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
this.timelinePanel.current?.refreshTimeline();
|
this.timelinePanel.current?.refreshTimeline();
|
||||||
|
|
Loading…
Reference in a new issue