fix width and height missing from photoswipe items

This commit is contained in:
Abhinav 2021-11-25 17:25:56 +05:30
parent e913615f57
commit 80e26b10b7

View file

@ -152,6 +152,8 @@ const PhotoFrame = ({
.map((item, index) => ({
...item,
dataIndex: index,
w: window.innerWidth,
h: window.innerHeight,
...(item.deleteBy && {
title: constants.AUTOMATIC_BIN_DELETE_MESSAGE(
formatDateRelative(item.deleteBy / 1000)