Skip to content

Commit

Permalink
(bug) unable to update event recurrence
Browse files Browse the repository at this point in the history
  • Loading branch information
gnepud committed Jan 12, 2024
1 parent 83eca55 commit f77b4af
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 1 addition & 2 deletions app/frontend/src/javascript/components/events/event-form.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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);
};

/**
Expand Down

0 comments on commit f77b4af

Please sign in to comment.