1
0
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:
Du Peng 2024-01-12 11:55:07 +01:00
parent 83eca554d8
commit f77b4af211
2 changed files with 3 additions and 2 deletions

View File

@ -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

View File

@ -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);
};
/**