lukeonline - commit 19667f7
fix: unhanlded null coordinate value19667f70eddd281f8acc6b539c4680c4d55ea80eLuke Jones<luke.jones.2567@gmail.com>2026-07-21T23:44:53+01:00diff --git a/src/pages/photos/[id].astro b/src/pages/photos/[id].astro
index 0cb064f..5b40902 100644
--- a/src/pages/photos/[id].astro
+++ b/src/pages/photos/[id].astro
@@ -22,11 +22,17 @@ const { photo } = Astro.props;
const photoSourceUrl = "/photos/source/";
const photoExtension = ".jpg";
+let coordString = 'None';
+
+if (photo.coordinates) {
+ coordString = `${photo.coordinates.x}, ${photo.coordinates.y}`
+}
+
const photoPath = `${photoSourceUrl}${photo.id}${photoExtension}`;
const tableData = {
"Location": photo.location,
- "Coordinates": `${photo.coordinates.x}, ${photo.coordinates.y}`,
+ "Coordinates": coordString,
"Tags": photo.tags
}
---