mirror of
https://git.rdcenter.ru/RDCenter/skb-kit.git
synced 2026-12-05 05:49:45 +00:00
Фикс кнопки "показать еще"
This commit is contained in:
1 parent
f55e5ab5f9
commit
fc9d252b0c
1 file changed
+3
-1
@@ -17,7 +17,9 @@ function NewsList({ isMainPage = false }) {
|
|||||||
const loadData = async () => {
|
const loadData = async () => {
|
||||||
const newNewsList = await getNews(count);
|
const newNewsList = await getNews(count);
|
||||||
setNewsList(newNewsList);
|
setNewsList(newNewsList);
|
||||||
console.log('newNewsList', newNewsList);
|
if (newNewsList.length < count) {
|
||||||
|
setIsFullList(true);
|
||||||
|
}
|
||||||
};
|
};
|
||||||
loadData();
|
loadData();
|
||||||
}, []);
|
}, []);
|
||||||
|
|||||||
Reference in new issue
Block a user