From 8137a99981b2db78b0b4a646db5ba07373a6cc1a Mon Sep 17 00:00:00 2001 From: Mary Hipp Date: Thu, 22 Jun 2023 14:51:27 -0400 Subject: [PATCH] simplify --- invokeai/frontend/web/src/services/apiSlice.ts | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) 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`,