From 30f2a1a26daafface596d21a703f9c303824ca3c Mon Sep 17 00:00:00 2001 From: ifraimka1 Date: Mon, 2 Jun 2025 13:50:30 +0300 Subject: [PATCH] =?UTF-8?q?=D1=84=D0=B8=D0=BA=D1=81=20=D1=84=D0=BE=D1=82?= =?UTF-8?q?=D0=BE=D0=B3=D0=B0=D0=BB=D0=B5=D1=80=D0=B5=D0=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/widgets/PhotoGallery/PhotoGallery.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/widgets/PhotoGallery/PhotoGallery.tsx b/src/widgets/PhotoGallery/PhotoGallery.tsx index 07ab733..465262b 100644 --- a/src/widgets/PhotoGallery/PhotoGallery.tsx +++ b/src/widgets/PhotoGallery/PhotoGallery.tsx @@ -15,7 +15,7 @@ const PhotoGallery = () => { return ; } - if (isError || !galleryImages || galleryImages.length === 0) { + if (isError || !filteredMedia || filteredMedia.length === 0) { return
Ошибка при загрузке медиа
; } @@ -43,7 +43,7 @@ const PhotoGallery = () => {

Фотогалерея

- {galleryImages.slice(0, visibleCount).map((media) => ( + {filteredMedia.slice(0, visibleCount).map((media) => (
{ ))}
- {visibleCount < galleryImages.length && ( + {visibleCount < filteredMedia.length && (
setVisibleCount(visibleCount + 10)}> Загрузить ещё