mirror of
https://github.com/JOYCEQL/magic-resume.git
synced 2026-07-03 14:07:11 +02:00
perf: sidePanel Section Delete
This commit is contained in:
@@ -216,7 +216,11 @@ export function SidePanel() {
|
||||
updateMenuSections(
|
||||
menuSections.filter((section) => section.id !== item.id)
|
||||
);
|
||||
setActiveSection(menuSections[0].id);
|
||||
setActiveSection(
|
||||
menuSections[
|
||||
menuSections.findIndex((s) => s.id === item.id) - 1
|
||||
].id
|
||||
);
|
||||
}}
|
||||
className={cn(
|
||||
"p-1.5 rounded-md text-primary",
|
||||
|
||||
Reference in New Issue
Block a user