This commit is contained in:
Mary Hipp 2023-06-22 14:51:27 -04:00 committed by psychedelicious
parent 878847defd
commit 8137a99981

View File

@ -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`,