diff --git a/web/client/src/features/articles/components/ArticleList.tsx b/web/client/src/features/articles/components/ArticleList.tsx index 7417a0c2..b6cbc822 100644 --- a/web/client/src/features/articles/components/ArticleList.tsx +++ b/web/client/src/features/articles/components/ArticleList.tsx @@ -91,6 +91,10 @@ export function ArticleList({ }; }, [hashMore]); + useEffect(() => { + setArticles(initialArticles); + }, [initialArticles]); + useEffect(() => { if (offset > 1) { loadMore(offset); diff --git a/web/client/src/features/articles/components/ArticleListTemplate.tsx b/web/client/src/features/articles/components/ArticleListTemplate.tsx index d5be2a72..666432ad 100644 --- a/web/client/src/features/articles/components/ArticleListTemplate.tsx +++ b/web/client/src/features/articles/components/ArticleListTemplate.tsx @@ -123,28 +123,15 @@ const ArticleListContent = async ({ /> - {languageStatus === 1 && ( - - )} - {languageStatus === 2 && ( - - )} + ); };