From e819ade8cb35d0c12a366f6d936d49e40e18bfbf Mon Sep 17 00:00:00 2001 From: mattwr18 Date: Mon, 9 Sep 2019 09:54:38 +0200 Subject: [PATCH] Add console.log statement on error to help debug - Geolocation is working in development, but not on staging or production --- webapp/pages/settings/index.vue | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/webapp/pages/settings/index.vue b/webapp/pages/settings/index.vue index 4ad57b49c..eb6fbbd33 100644 --- a/webapp/pages/settings/index.vue +++ b/webapp/pages/settings/index.vue @@ -159,7 +159,6 @@ export default { this.cities = [] return } - this.loadingGeo = true this.axiosSource = CancelToken.source() @@ -176,6 +175,10 @@ export default { .then(res => { this.cities = this.processCityResults(res) }) + .catch(error => { + /* eslint-disable-next-line no-console */ + console.log(error) + }) .finally(() => { this.loadingGeo = false })