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

Fixed failing test

parent ea4d8b10
No related branches found
No related tags found
No related merge requests found
...@@ -28,7 +28,7 @@ export default { ...@@ -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 { ...@@ -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 => {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment