mirror of
https://github.com/wassname/talk.git
synced 2026-08-04 13:23:35 +08:00
Fix cursor bug
This commit is contained in:
@@ -166,8 +166,9 @@ class ModerationQueue extends React.Component {
|
||||
const {comments: prevComments} = this.props;
|
||||
const {comments: nextComments} = next;
|
||||
|
||||
if (!prevComments && nextComments || !prevComments.length && nextComments.length) {
|
||||
this.setState(resetCursors);
|
||||
// New comments where added and our cursor list is incomplete.
|
||||
if (this.state.idCursors.length < 2 && nextComments.length > this.state.idCursors.length) {
|
||||
this.setState(resetCursors(this.state, next));
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user