update js dependencies

This commit is contained in:
Sam
2021-11-06 21:27:23 +01:00
parent 3d66f6dd70
commit c7024e6692
65 changed files with 1353 additions and 15211 deletions

View File

@ -13,7 +13,7 @@ authApi.interceptors.request.use(
const authToken = store.getters[AUTH_USER_STORE.GETTERS.AUTH_TOKEN]
if (authToken) {
const auth = `Bearer ${authToken}`
if (config.headers.Authorization !== auth) {
if (config.headers && config.headers.Authorization !== auth) {
config.headers.Authorization = `Bearer ${authToken}`
}
}