diff --git a/invokeai/frontend/web/src/services/apiSlice.ts b/invokeai/frontend/web/src/services/apiSlice.ts index e9d4ec492d..602d433309 100644 --- a/invokeai/frontend/web/src/services/apiSlice.ts +++ b/invokeai/frontend/web/src/services/apiSlice.ts @@ -50,10 +50,7 @@ const dynamicBaseQuery: BaseQueryFn< unknown, FetchBaseQueryError > = async (args, api, extraOptions) => { - let baseUrl = '/api/v1'; - if (OpenAPI.BASE) { - baseUrl = OpenAPI.BASE; - } + const baseUrl = OpenAPI.BASE || ''; const rawBaseQuery = fetchBaseQuery({ baseUrl: `${baseUrl}/api/v1`,