fix: correct recurring to non-recurring event update logic

- Fix bug where updating recurring event to non-recurring created duplicate events
- Deduplicate URLs before deletion to avoid multiple delete calls on same file
- Add onCloseAll prop to close both preview and update modals after save
- Adjust smooth UI

Resolves issue where repeat->no-repeat conversion left old recurring events visible
This commit is contained in:
lenhanphung
2025-10-10 11:45:10 +07:00
committed by Benoit TELLIER
parent 757060946f
commit 942b203b0f
3 changed files with 209 additions and 125 deletions
@@ -510,6 +510,10 @@ export default function EventPreviewModal({
<EventUpdateModal
open={openUpdateModal}
onClose={() => setOpenUpdateModal(false)}
onCloseAll={() => {
setOpenUpdateModal(false);
onClose({}, "backdropClick");
}}
eventId={eventId}
calId={calId}
typeOfAction={typeOfAction}