Default site selection is now the first returned option

This commit is contained in:
neviyn 2019-08-29 10:00:49 +01:00
parent 6412610047
commit a3dab505ef

View File

@ -157,6 +157,7 @@ export default {
.get("/site") .get("/site")
.then(response => { .then(response => {
this.siteOptions = response.data; this.siteOptions = response.data;
this.siteSelection = response.data[0].value;
}) })
.catch(error => { .catch(error => {
if (error.response.status === 404) { if (error.response.status === 404) {