mirror of
https://github.com/Tria-plc/emaui.git
synced 2026-08-26 19:12:50 +00:00
fixes
This commit is contained in:
@@ -16,7 +16,7 @@ const configurationApi = baseApi.injectEndpoints({
|
||||
|
||||
getProfessions: builder.query<
|
||||
ListResponse<Profession>,
|
||||
{ skip?: number; take?: number; q?: string } | void
|
||||
{ skip?: number; take?: number; q?: string; orderBy?: string } | void
|
||||
>({
|
||||
query: (arg) => ({ url: '/professions', params: arg ?? {} }),
|
||||
providesTags: ['Api'],
|
||||
|
||||
@@ -145,7 +145,7 @@ function ProfessionTab() {
|
||||
isFetching,
|
||||
isError,
|
||||
refetch,
|
||||
} = useGetProfessionsQuery({ skip, take, q: q || undefined });
|
||||
} = useGetProfessionsQuery({ skip, take, q: q || undefined, orderBy: 'CreatedAt:DESC' });
|
||||
const [createProfession, { isLoading: isCreating }] = useCreateProfessionMutation();
|
||||
const [updateProfession, { isLoading: isUpdating }] = useUpdateProfessionMutation();
|
||||
const [deleteProfession] = useDeleteProfessionMutation();
|
||||
|
||||
Reference in New Issue
Block a user