Skip to content
Snippets Groups Projects
Verified Commit 73637273 authored by Eliot Berriot's avatar Eliot Berriot
Browse files

Fixed broken frontend

parent e1474400
No related branches found
No related tags found
No related merge requests found
Fixed front-end not contacting the proper path on the API
......@@ -127,6 +127,9 @@ export default {
if (!this.$store.state.instance.instanceUrl) {
let defaultInstanceUrl = process.env.VUE_APP_INSTANCE_URL || this.$store.getters['instance/defaultUrl']()
this.$store.commit('instance/instanceUrl', defaultInstanceUrl)
} else {
// needed to trigger initialization of axios
this.$store.commit('instance/instanceUrl', this.$store.state.instance.instanceUrl)
}
this.$store.dispatch('auth/check')
this.$store.dispatch('instance/fetchSettings')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment