mirror of
https://github.com/Tria-plc/emaui.git
synced 2026-09-07 21:15:42 +00:00
test
This commit is contained in:
@@ -14,12 +14,11 @@ const configurationApi = baseApi.injectEndpoints({
|
||||
providesTags: ["Api"],
|
||||
}),
|
||||
|
||||
getProfessions: builder.query<ListResponse<Profession>, { q?: string }>({
|
||||
getProfessions: builder.query<ListResponse<Profession>, string>({
|
||||
query: (params) => ({
|
||||
url: "/professions",
|
||||
params,
|
||||
url: `/professions?q=${encodeURIComponent(params)}`,
|
||||
}),
|
||||
providesTags: ["Api"],
|
||||
providesTags: ["Api", "backOfficeApi", "ProfessionApi"],
|
||||
}),
|
||||
createProfession: builder.mutation<Profession, CreateProfessionPayload>({
|
||||
query: (body) => ({ url: "/professions", method: "POST", body }),
|
||||
|
||||
@@ -172,9 +172,9 @@ function ProfessionTab() {
|
||||
isFetching,
|
||||
isError,
|
||||
refetch,
|
||||
} = useGetProfessionsQuery({
|
||||
q: `skip:${skip},take:${take},orderBy:createdAt:DESC`,
|
||||
});
|
||||
} = useGetProfessionsQuery(
|
||||
`skip:${skip},take:${take},orderBy:createdAt:DESC`,
|
||||
);
|
||||
const [createProfession, { isLoading: isCreating }] =
|
||||
useCreateProfessionMutation();
|
||||
const [updateProfession, { isLoading: isUpdating }] =
|
||||
|
||||
Reference in New Issue
Block a user