mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
simplify
This commit is contained in:
parent
878847defd
commit
8137a99981
@ -50,10 +50,7 @@ const dynamicBaseQuery: BaseQueryFn<
|
|||||||
unknown,
|
unknown,
|
||||||
FetchBaseQueryError
|
FetchBaseQueryError
|
||||||
> = async (args, api, extraOptions) => {
|
> = async (args, api, extraOptions) => {
|
||||||
let baseUrl = '/api/v1';
|
const baseUrl = OpenAPI.BASE || '';
|
||||||
if (OpenAPI.BASE) {
|
|
||||||
baseUrl = OpenAPI.BASE;
|
|
||||||
}
|
|
||||||
|
|
||||||
const rawBaseQuery = fetchBaseQuery({
|
const rawBaseQuery = fetchBaseQuery({
|
||||||
baseUrl: `${baseUrl}/api/v1`,
|
baseUrl: `${baseUrl}/api/v1`,
|
||||||
|
Loading…
Reference in New Issue
Block a user