Skip to content

Commit 71ecc08

Browse files
committed
limit news to 6
1 parent 0cda9ea commit 71ecc08

File tree

1 file changed

+1
-1
lines changed
  • src/shared/containers/Dashboard/NewsFeed

1 file changed

+1
-1
lines changed

src/shared/containers/Dashboard/NewsFeed/index.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ function NewsFeedContainer() {
2626
const isProd = config.URL.FORUMS_VANILLA === 'https://discussions.topcoder.com';
2727
const result = await fetch(`/api/cdn/public/forums/discussions?categoryID=${isProd ? 1441 : 2716}`);
2828
const data = await result.json();
29-
setNewsData(data);
29+
setNewsData(data.slice(0, 6));
3030
}
3131
fetchData();
3232
}, []);

0 commit comments

Comments
 (0)