Feed bugfixes (#2204)
* Dont show both an error and empty message in the feed * Add a sanity check when attempting to fill the first 30
This commit is contained in:
parent
e3ba014be0
commit
8245e56747
3 changed files with 15 additions and 4 deletions
|
@ -167,8 +167,7 @@ let Feed = ({
|
|||
if (isFetched) {
|
||||
if (isError && isEmpty) {
|
||||
arr = arr.concat([ERROR_ITEM])
|
||||
}
|
||||
if (isEmpty) {
|
||||
} else if (isEmpty) {
|
||||
arr = arr.concat([EMPTY_FEED_ITEM])
|
||||
} else if (data) {
|
||||
for (const page of data?.pages) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue