Skip to content

Commit

Permalink
don't work ;/
Browse files Browse the repository at this point in the history
  • Loading branch information
PiotrTyrakowski committed Sep 29, 2024
1 parent 7bdb476 commit f11dd80
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions parent_app/src/app/list/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ const ImageGallery = () => {
const [images, setImages] = useState<ImageData[]>([]);
const [loading, setLoading] = useState(true);

//useEffect(() => {
useEffect(() => {
const fetchImages = async () => {
try {
const response = await fetch('/api/get-images');
Expand All @@ -34,7 +34,7 @@ const ImageGallery = () => {
};

fetchImages();
// }, []);
}, []);

if (loading) {
return <p className="text-black">Loading images...</p>;
Expand Down

0 comments on commit f11dd80

Please # to comment.