mirror of
https://github.com/strapi/strapi.git
synced 2025-12-29 16:16:20 +00:00
Settings: Sort workflows by name
This commit is contained in:
parent
624ee834df
commit
5f126020b3
@ -65,7 +65,7 @@ describe('useReviewWorkflows', () => {
|
||||
|
||||
expect(result.current.workflows.isLoading).toBe(true);
|
||||
expect(get).toBeCalledWith('/admin/review-workflows/workflows/', {
|
||||
params: { populate: 'stages' },
|
||||
params: { sort: 'name:asc', populate: 'stages' },
|
||||
});
|
||||
|
||||
await waitFor(() => expect(result.current.workflows.isLoading).toBe(false));
|
||||
|
||||
@ -9,7 +9,7 @@ export function useReviewWorkflows(workflowId) {
|
||||
const client = useQueryClient();
|
||||
const workflowQueryKey = [QUERY_BASE_KEY, workflowId ?? 'default'];
|
||||
|
||||
async function fetchWorkflows({ params = { populate: 'stages' } }) {
|
||||
async function fetchWorkflows({ params = { sort: 'name:asc', populate: 'stages' } }) {
|
||||
try {
|
||||
const {
|
||||
data: { data },
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user