Merge branch 'fixed-broken-front' into 'develop'

Fixed broken frontend

See merge request funkwhale/funkwhale!385
This commit is contained in:
Eliot Berriot 2018-08-21 18:31:03 +00:00
commit 192b320be3
2 changed files with 4 additions and 0 deletions

View File

@ -0,0 +1 @@
Fixed front-end not contacting the proper path on the API

View File

@ -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')