mirror of
https://github.com/LaCasemate/fab-manager.git
synced 2025-02-20 14:54:15 +01:00
(bug) unable to update event recurrence
This commit is contained in:
parent
83eca554d8
commit
f77b4af211
@ -2,6 +2,8 @@
|
||||
|
||||
## Next release
|
||||
|
||||
- Fix a bug: unable to update event recurrence
|
||||
|
||||
## v6.3.9 2024 January 8
|
||||
|
||||
- translation files added for Swedish
|
||||
|
@ -132,8 +132,7 @@ export const EventForm: React.FC<EventFormProps> = ({ action, event, onError, on
|
||||
* Check if any dates have changed
|
||||
*/
|
||||
const datesHaveChanged = (): boolean => {
|
||||
return ((event?.start_date !== (updatingEvent?.start_date as Date)?.toISOString()?.substring(0, 10)) ||
|
||||
(event?.end_date !== (updatingEvent?.end_date as Date)?.toISOString()?.substring(0, 10)));
|
||||
return (event?.start_date !== updatingEvent?.start_date) || (event?.end_date !== updatingEvent?.end_date);
|
||||
};
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user