StatusList: don't push null item to Virtuoso (LoadGap)
This commit is contained in:
parent
261d900b51
commit
41b4a229b6
1 changed files with 5 additions and 1 deletions
|
@ -192,7 +192,11 @@ const StatusList: React.FC<IStatusList> = ({
|
|||
}
|
||||
|
||||
if (statusId === null) {
|
||||
acc.push(renderLoadGap(index));
|
||||
const gap = renderLoadGap(index);
|
||||
// one does not simply push a null item to Virtuoso: https://github.com/petyosi/react-virtuoso/issues/206#issuecomment-747363793
|
||||
if (gap) {
|
||||
acc.push(gap);
|
||||
}
|
||||
} else if (statusId.startsWith('末suggestions-')) {
|
||||
if (soapboxConfig.feedInjection) {
|
||||
acc.push(renderFeedSuggestions());
|
||||
|
|
Loading…
Reference in a new issue