fix build crash
This commit is contained in:
@@ -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);
|
||||
|
||||
|
Reference in New Issue
Block a user