build fix

This commit is contained in:
Abhinav 2022-12-05 00:34:02 +05:30
parent 2cfd4e9209
commit 03281ff601

View file

@ -293,7 +293,7 @@ function PhotoViewer(props: Iprops) {
if (callback || event === 'destroy') {
photoSwipe.listen(event, function (...args) {
if (callback) {
args.unshift(this);
args.unshift(photoSwipe);
callback(...args);
}
if (event === 'destroy') {