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 width = `${widthNumber}%`;
console.log(image.fields.imageMeta.dominantHue);
return (
<Link
className={classNames(

View File

@ -15,7 +15,7 @@ const GalleryPage = ({ data }) => {
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]
);