Commit 2d9510db authored by Rémy Huet's avatar Rémy Huet 💻

Sort categories by parent_id

parent 013090aa
Pipeline #32389 passed with stage
in 55 seconds
......@@ -6,7 +6,7 @@ import env from '../env';
export function fetchCategories(token) {
return {
type: 'FETCH_CATEGORIES',
payload: axios.get(`${env.api_uri}/api/v1/categories`,
payload: axios.get(`${env.api_uri}/api/v1/categories?include=parent&sort=parent_id`,
{
headers: { Authorization: `Bearer ${token}` },
}),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment