mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-02-17 23:44:39 -05:00
Fixed skeleton loader on ActivityPub inbox and feed screens (#22171)
no issues
This commit is contained in:
parent
01a7a71e2c
commit
784baa1fba
2 changed files with 2 additions and 2 deletions
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "@tryghost/admin-x-activitypub",
|
||||
"version": "0.4.0",
|
||||
"version": "0.4.1",
|
||||
"license": "MIT",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
|
|
|
@ -38,7 +38,7 @@ const Inbox: React.FC<InboxProps> = ({layout}) => {
|
|||
const updateActivity = layout === 'inbox' ? updateInboxActivity : updateFeedActivity;
|
||||
const {data, fetchNextPage, hasNextPage, isFetchingNextPage, isLoading} = feedQueryData;
|
||||
|
||||
const activities = (data?.pages.flatMap(page => page.posts) ?? []);
|
||||
const activities = (data?.pages.flatMap(page => page.posts) ?? Array.from({length: 5}, (_, index) => ({id: `placeholder-${index}`, object: {}})));
|
||||
|
||||
// Initialise suggested profiles
|
||||
const {suggestedProfilesQuery} = useSuggestedProfilesForUser('index', 3);
|
||||
|
|
Loading…
Add table
Reference in a new issue