fix build crash

This commit is contained in:
2022-07-10 17:17:57 -07:00
parent 4bfd662138
commit 273f3a1d93
2 changed files with 3 additions and 1 deletions

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);