Skip to content

Commit 4a654dd

Browse files
committed
[feat] Resets update state and timestamp after event edit
Clears the update message, status, and sets the update timestamp to the current date after successfully editing an event. This enhancement improves user feedback by ensuring the UI reflects the latest changes promptly.
1 parent b052818 commit 4a654dd

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/Components/Event/useEditForm.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -242,6 +242,10 @@ export function useEditForm(event: Models.IEvent) {
242242
DB.Events[eventIndex] = updatedEvent;
243243
Update();
244244
}
245+
246+
_setUpdate("");
247+
_setStatus(undefined);
248+
_setUpdateAt(new Date());
245249
}, {
246250
manual: true
247251
});

0 commit comments

Comments
 (0)