Fixed failing test

This commit is contained in:
Eliot Berriot 2018-02-24 14:55:08 +01:00
parent ea4d8b1010
commit f398d40ecc
No known key found for this signature in database
GPG Key ID: DD6965E2476E5C27
1 changed files with 2 additions and 2 deletions

View File

@ -28,7 +28,7 @@ export default {
}, },
actions: { actions: {
// Send a request to the login URL and save the returned JWT // Send a request to the login URL and save the returned JWT
fetchSettings ({commit}, {callback}) { fetchSettings ({commit}, payload) {
return axios.get('instance/settings/').then(response => { return axios.get('instance/settings/').then(response => {
logger.default.info('Successfully fetched instance settings') logger.default.info('Successfully fetched instance settings')
let sections = {} let sections = {}
@ -39,7 +39,7 @@ export default {
sections[e.section][e.name] = e sections[e.section][e.name] = e
}) })
commit('settings', sections) commit('settings', sections)
if (callback) { if (payload && payload.callback) {
callback() callback()
} }
}, response => { }, response => {