mirror of
https://github.com/JOYCEQL/magic-resume.git
synced 2026-07-03 14:07:11 +02:00
fix: menu section reorder
This commit is contained in:
@@ -503,7 +503,10 @@ export const useResumeStore = create(
|
||||
const reorderedSections = [
|
||||
basicInfoSection,
|
||||
...newOrder.filter((section) => section.id !== "basic"),
|
||||
];
|
||||
].map((section, index) => ({
|
||||
...section,
|
||||
order: index,
|
||||
}));
|
||||
get().updateResume(activeResumeId, {
|
||||
menuSections: reorderedSections as MenuSection[],
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user