Fix: hotfix: projectiontype might be not defined, this crashes validation

This commit is contained in:
Pieter Vander Vennet 2025-06-04 18:41:25 +02:00
parent 09156dfba1
commit d2c63853d6

View file

@ -97,7 +97,7 @@ export class ImageUploadManager {
} }
const tags = await ExifReader.load(file) const tags = await ExifReader.load(file)
if (tags.ProjectionType.value === "cylindrical") { if (tags.ProjectionType?.value === "cylindrical") {
return { return {
error: new Translation({ error: new Translation({
en: "Cylindrical images (typically created by a Panorama-app) are not supported", en: "Cylindrical images (typically created by a Panorama-app) are not supported",