diff --git a/src/common/http.js b/src/common/http.js index 3f8b0fb45..64fbaa87b 100644 --- a/src/common/http.js +++ b/src/common/http.js @@ -35,7 +35,7 @@ axios.interceptors.request.use( if ( !config.keepSpaces && ['post', 'put'].includes(config.method) && - typeof config.data === 'object' + _.isPlainObject(config.data) ) { config.data = trimValues(config.data) } diff --git a/src/hooks/useDashboardVersion.ts b/src/hooks/useDashboardVersion.ts index c25614417..d7f4f0e40 100644 --- a/src/hooks/useDashboardVersion.ts +++ b/src/hooks/useDashboardVersion.ts @@ -11,7 +11,6 @@ export default (): { url: 'version', baseURL: '', }) - debugger const version = versionContent.match(versionReg)?.[1] if (version) { console.log('🔎 Dashboard Version:', version)