Фикс кнопки "показать еще"

This commit is contained in:
ifraimka1 committed 2025-03-17 13:53:19 +03:00
1 parent f55e5ab5f9
commit fc9d252b0c
1 file changed
+3 -1
+3 -1
View File
@@ -17,7 +17,9 @@ function NewsList({ isMainPage = false }) {
const loadData = async () => {
const newNewsList = await getNews(count);
setNewsList(newNewsList);
console.log('newNewsList', newNewsList);
if (newNewsList.length < count) {
setIsFullList(true);
}
};
loadData();
}, []);