From f398d40ecc9a85b6b7822ad1b81d6f3c42cdb479 Mon Sep 17 00:00:00 2001
From: Eliot Berriot <contact@eliotberriot.com>
Date: Sat, 24 Feb 2018 14:55:08 +0100
Subject: [PATCH] Fixed failing test

---
 front/src/store/instance.js | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/front/src/store/instance.js b/front/src/store/instance.js
index dd20a8b1d7..80003db0dc 100644
--- a/front/src/store/instance.js
+++ b/front/src/store/instance.js
@@ -28,7 +28,7 @@ export default {
   },
   actions: {
     // 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 => {
         logger.default.info('Successfully fetched instance settings')
         let sections = {}
@@ -39,7 +39,7 @@ export default {
           sections[e.section][e.name] = e
         })
         commit('settings', sections)
-        if (callback) {
+        if (payload && payload.callback) {
           callback()
         }
       }, response => {
-- 
GitLab