Fix createDataLoadingThunk and related actions (#30408)

This commit is contained in:
Renaud Chaput authored and GitHub committed 2024-05-23 18:22:42 +00:00
1 parent 133d98fb25
commit b6fd14f0e2
12 files changed
+41 -35

No files matched your search

+3 -3
View File
@@ -62,12 +62,12 @@ export default function api(withAuthorization = true) {
export async function apiRequest<ApiResponse = unknown>(
method: Method,
url: string,
params?: unknown,
params?: Record<string, unknown>,
) {
const { data } = await api().request<ApiResponse>({
method,
url,
params,
url: '/api/' + url,
data: params,
});
return data;