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,
|
||||
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`,
|
||||
|
Loading…
Reference in New Issue
Block a user