diff --git a/src/app/editArea/[slug]/general/components/AreaList.tsx b/src/app/editArea/[slug]/general/components/AreaList.tsx index 0657a7e83..15f815207 100644 --- a/src/app/editArea/[slug]/general/components/AreaList.tsx +++ b/src/app/editArea/[slug]/general/components/AreaList.tsx @@ -2,6 +2,7 @@ import { AreaType } from '@/js/types' import { AreaItem } from './AreaItem' import { GluttenFreeCrumbs } from '@/components/ui/BreadCrumbs' +import { areaLeftRightIndexComparator } from '@/js/utils' type AreaListProps = Pick & { areas: AreaType[] @@ -33,6 +34,6 @@ export const AreaListForm: React.FC = ({ areaName, uuid, pathToke export const AreaList: React.FC<{ parentUuid: string, areas: AreaType[], editMode?: boolean }> = ({ areas, parentUuid, editMode = false }) => (
- {areas.map((item, index) => + {[...areas].sort(areaLeftRightIndexComparator).map((item, index) => )}
)