From be8ca0579cff67e4f05278a39697c67931301c71 Mon Sep 17 00:00:00 2001 From: Jasper Kang Date: Wed, 9 Oct 2024 15:24:06 +1300 Subject: [PATCH] Stats: query likes for post before selecting it (#95236) * fix like count for odyssey * we need to query the data before selecting likes --- .../sections/all-time-highlights-section/post-cards-group.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/client/my-sites/stats/sections/all-time-highlights-section/post-cards-group.tsx b/client/my-sites/stats/sections/all-time-highlights-section/post-cards-group.tsx index 5b483c2f08b80..1365e26088e3e 100644 --- a/client/my-sites/stats/sections/all-time-highlights-section/post-cards-group.tsx +++ b/client/my-sites/stats/sections/all-time-highlights-section/post-cards-group.tsx @@ -3,6 +3,7 @@ import { PostStatsCard, ComponentSwapper, DotPager } from '@automattic/component import { createSelector } from '@automattic/state-utils'; import { useTranslate } from 'i18n-calypso'; import moment from 'moment'; +import QueryPostLikes from 'calypso/components/data/query-post-likes'; import QueryPostStats from 'calypso/components/data/query-post-stats'; import QueryPosts from 'calypso/components/data/query-posts'; import QuerySiteStats from 'calypso/components/data/query-site-stats'; @@ -182,6 +183,7 @@ export default function PostCardsGroup( { <> + ) }