0
Fork 0
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:
Sodbileg Gansukh 2025-02-12 16:01:39 +08:00 committed by GitHub
parent 01a7a71e2c
commit 784baa1fba
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View file

@ -1,6 +1,6 @@
{
"name": "@tryghost/admin-x-activitypub",
"version": "0.4.0",
"version": "0.4.1",
"license": "MIT",
"repository": {
"type": "git",

View file

@ -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);