From 977b7dd0a04ad43e07098570087b87139e571db3 Mon Sep 17 00:00:00 2001
From: Lene Wasskog <lene.wasskog@nibio.no>
Date: Wed, 14 May 2025 13:22:02 +0200
Subject: [PATCH] fix: Ensure that observation data is correctly set up for obs
 in timeseries [VIPSUTV-1068]

---
 src/main/webapp/templates/observationForm.ftl | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/main/webapp/templates/observationForm.ftl b/src/main/webapp/templates/observationForm.ftl
index d7f2377f..0c82d825 100755
--- a/src/main/webapp/templates/observationForm.ftl
+++ b/src/main/webapp/templates/observationForm.ftl
@@ -138,7 +138,8 @@
                 const locationName = nameForLocationPointOfInterestId(locationPointOfInterestId, allPois);
                 document.getElementById("locationDisplayName").innerHTML = locationName || null;
             });
-            initLocationMap(locationPointOfInterestId)
+            initLocationMap(locationPointOfInterestId);
+            initObservationData(organismId, organizationId);
         }
 
         function getDataSchema(organismId, organizationId) {
-- 
GitLab