remove log and apply client side sort

This commit is contained in:
Chuck Dries 2022-06-21 12:32:30 -07:00
parent 15c8f57e98
commit 84ee824eab
No known key found for this signature in database
GPG Key ID: A00B7AEAE1DC5BE6
2 changed files with 1 additions and 2 deletions

View File

@ -101,7 +101,6 @@ const MasonryGallery = ({
const widthNumber = ((ar / rowAspectRatioSum) * 100).toFixed(7); const widthNumber = ((ar / rowAspectRatioSum) * 100).toFixed(7);
const width = `${widthNumber}%`; const width = `${widthNumber}%`;
console.log(image.fields.imageMeta.dominantHue);
return ( return (
<Link <Link
className={classNames( className={classNames(

View File

@ -15,7 +15,7 @@ const GalleryPage = ({ data }) => {
R.map((edge) => edge.node), R.map((edge) => edge.node),
debug debug
? R.sortBy(R.path(["fields", "imageMeta", "dominantHue", 0])) ? R.sortBy(R.path(["fields", "imageMeta", "dominantHue", 0]))
: R.identity : R.sortBy(R.path(["fields", "imageMeta", "vibrantHue"]))
)(data.allFile.edges), )(data.allFile.edges),
[data, debug] [data, debug]
); );