diff --git a/packages/kubekit-client/package.json b/packages/kubekit-client/package.json index e4b10640..a9f21518 100644 --- a/packages/kubekit-client/package.json +++ b/packages/kubekit-client/package.json @@ -1,6 +1,6 @@ { "name": "@kubekit/client", - "version": "0.2.31", + "version": "0.2.32", "main": "dist/index.js", "types": "dist/index.d.ts", "author": "kahirokunn", diff --git a/packages/kubekit-client/src/client/index.ts b/packages/kubekit-client/src/client/index.ts index 8b22cb51..96de56db 100644 --- a/packages/kubekit-client/src/client/index.ts +++ b/packages/kubekit-client/src/client/index.ts @@ -209,7 +209,7 @@ export async function apiClient( interceptors: [] as Interceptor[], ...removeNullableProperties(extraOptions), }; - options.interceptors = [...globalInterceptors, ...options.interceptors]; + options.interceptors = [...globalInterceptors, ...options.interceptors].filter((interceptor) => interceptor); if (options.interceptors.length === 0) { options.interceptors = [defaultAuthorizationInterceptor]; }