From a3dab505ef1ceb915f18ff77bad660d9f9612516 Mon Sep 17 00:00:00 2001 From: Nathan Cannon Date: Thu, 29 Aug 2019 10:00:49 +0100 Subject: [PATCH] Default site selection is now the first returned option --- frontend/src/components/ObservationSearchBar.vue | 1 + 1 file changed, 1 insertion(+) diff --git a/frontend/src/components/ObservationSearchBar.vue b/frontend/src/components/ObservationSearchBar.vue index 0e50df5..e279dc8 100644 --- a/frontend/src/components/ObservationSearchBar.vue +++ b/frontend/src/components/ObservationSearchBar.vue @@ -157,6 +157,7 @@ export default { .get("/site") .then(response => { this.siteOptions = response.data; + this.siteSelection = response.data[0].value; }) .catch(error => { if (error.response.status === 404) {