From 84ee824eab85a9e47809ae2a6f06287b2bc6b58a Mon Sep 17 00:00:00 2001 From: Chuck Dries Date: Tue, 21 Jun 2022 12:32:30 -0700 Subject: [PATCH] remove log and apply client side sort --- src/components/MasonryGallery.js | 1 - src/pages/photogallery.js | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/components/MasonryGallery.js b/src/components/MasonryGallery.js index da47bc0..38c0294 100644 --- a/src/components/MasonryGallery.js +++ b/src/components/MasonryGallery.js @@ -101,7 +101,6 @@ const MasonryGallery = ({ const widthNumber = ((ar / rowAspectRatioSum) * 100).toFixed(7); const width = `${widthNumber}%`; - console.log(image.fields.imageMeta.dominantHue); return ( { R.map((edge) => edge.node), debug ? R.sortBy(R.path(["fields", "imageMeta", "dominantHue", 0])) - : R.identity + : R.sortBy(R.path(["fields", "imageMeta", "vibrantHue"])) )(data.allFile.edges), [data, debug] );