fix build crash

This commit is contained in:
Chuck Dries 2022-07-10 17:17:57 -07:00
parent 4bfd662138
commit 273f3a1d93
No known key found for this signature in database
GPG Key ID: A00B7AEAE1DC5BE6
2 changed files with 3 additions and 1 deletions

View File

@ -7,3 +7,4 @@
- [x] gallery sort and filter preserved in url (use-query or whatever?)
- [x] nav next/prev buttons use saved gallery sort and filter
- [ ] bug: "gallery" buttin in nav should reset filter and sort selections
- [ ] bug: styling on action buttons in prerender/isClient==false

View File

@ -39,9 +39,10 @@ const logKeyShortcut = (keyCode) => {
const GalleryImage = ({
data,
location: {
state: { sortedImageList, currentIndex, filterKeyword, sortKey },
state
},
}) => {
const { sortedImageList, currentIndex, filterKeyword, sortKey } = state ?? {};
const image = data.file;
const ar = getAspectRatio(image);