Fix panoramax errors when image not in cache (#10376)

This commit is contained in:
Mattia Pezzotti
2024-08-03 20:45:38 +02:00
committed by GitHub
parent 0499b3f4a0
commit e9095eb1bf

View File

@@ -488,7 +488,6 @@ export default {
_currentFrame
.selectPhoto(d, true)
.showPhotoFrame(wrap);
});
function localeDateString(s) {
@@ -592,9 +591,10 @@ export default {
const nextImage = _cache.images.forImageId[nextId];
context.map().centerEase(nextImage.loc);
that.selectImage(context, nextImage.id);
if (nextImage){
context.map().centerEase(nextImage.loc);
that.selectImage(context, nextImage.id);
}
};
}