fix: menu section reorder

This commit is contained in:
JOYCEQL
2024-12-10 18:48:25 +08:00
committed by qingchen
parent 01f88cdc40
commit 9a754ceb8d
+4 -1
View File
@@ -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[],
});