mirror of
https://github.com/invoke-ai/InvokeAI.git
synced 2026-04-23 03:00:31 -04:00
simplify
This commit is contained in:
@@ -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`,
|
||||
|
||||
Reference in New Issue
Block a user