Squashed merge from refactor/code-cleanup to main
This commit is contained in:
@@ -28,10 +28,9 @@ const mutations = {
|
||||
SET_ERRORS(state, payload) {
|
||||
// The payload has useless data for the GUI, so only the needed data is saved in the store
|
||||
for (const errorName in state) {
|
||||
// eslint-disable-next-line no-prototype-builtins
|
||||
if (state.hasOwnProperty(errorName)) {
|
||||
const error = payload[errorName]
|
||||
|
||||
state[errorName] = error
|
||||
state[errorName] = payload[errorName]
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -34,7 +34,8 @@ const actions = {
|
||||
commit('RESET_LOGIN')
|
||||
},
|
||||
setARL({ commit }, payload) {
|
||||
let { arl, saveOnLocalStorage } = payload
|
||||
let { saveOnLocalStorage } = payload
|
||||
const { arl } = payload
|
||||
|
||||
saveOnLocalStorage = typeof saveOnLocalStorage === 'undefined' ? true : saveOnLocalStorage
|
||||
|
||||
@@ -45,7 +46,8 @@ const actions = {
|
||||
}
|
||||
},
|
||||
setAccessToken({ commit }, payload) {
|
||||
let { accessToken, saveOnLocalStorage } = payload
|
||||
let { saveOnLocalStorage } = payload
|
||||
const { accessToken } = payload
|
||||
|
||||
saveOnLocalStorage = typeof saveOnLocalStorage === 'undefined' ? true : saveOnLocalStorage
|
||||
|
||||
|
||||
Reference in New Issue
Block a user