Fix some React warnings (#26609)

This commit is contained in:
Christian Schmidt authored and GitHub committed 2023-08-23 15:43:41 +02:00
1 parent 44ba785242
commit 152b10b624
3 files changed
+9 -6

No files matched your search

@@ -568,7 +568,7 @@ class Status extends ImmutablePureComponent {
onMoveUp={this.handleMoveUp}
onMoveDown={this.handleMoveDown}
contextType='thread'
previousId={i > 0 && list.get(i - 1)}
previousId={i > 0 ? list.get(i - 1) : undefined}
nextId={list.get(i + 1) || (ancestors && statusId)}
rootId={statusId}
/>