Skip to content

Commit

Permalink
reverse chronological order for photos
Browse files Browse the repository at this point in the history
  • Loading branch information
ct-chu authored Feb 14, 2024
1 parent ab9f41c commit 80edeaf
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/pages/mediaProduction/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,8 @@ const Tabs = () => {
const [slides, setSlides] = useState([]);
useEffect(() => {
if (graphInfo.loaded) {
const dataGraphics = graphInfo.data.photoset.photo.map(createPhotoArray);
let dataGraphics = graphInfo.data.photoset.photo.map(createPhotoArray);
dataGraphics = dataPhoto.reverse();
setSlides(dataGraphics);
// console.log("slides");
// console.log(slides);
Expand Down

0 comments on commit 80edeaf

Please sign in to comment.