fix(tsc): fix type errors

Part-of: <https://dev.funkwhale.audio/funkwhale/funkwhale/-/merge_requests/2337>
This commit is contained in:
Kasper Seweryn 2023-01-23 13:13:33 +01:00 committed by Georg Krause
parent e1d5c9f832
commit 7d474dea72
No known key found for this signature in database
GPG Key ID: 2970D504B2183D22
1 changed files with 1 additions and 2 deletions

View File

@ -9,7 +9,6 @@ import moment from 'moment'
import axios from 'axios'
import useLogger from '~/composables/useLogger'
import { getDepOptimizationConfig } from 'vite'
const { t } = i18n.global
const logger = useLogger()
@ -19,7 +18,7 @@ export const install: InitModule = ({ store, router }) => {
axios.defaults.xsrfHeaderName = 'X-CSRFToken'
axios.interceptors.request.use(function (config) {
// Do something before request is sent
if (store.state.auth.oauth.accesscToken) {
if (store.state.auth.oauth.accessToken) {
config.headers.Authorization = store.getters['auth/header']
}
return config