Skip to content

Commit

Permalink
calendar/EventModal: fix issue where start or end time would get rese…
Browse files Browse the repository at this point in the history
…t when editing a multi-day event
  • Loading branch information
thatoddmailbox committed Aug 22, 2023
1 parent 7a45026 commit 4c1ddcb
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions app/calendar/EventModal.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,14 @@ export default class EventModal extends Component {
if (props.modalState.tags) {
if (props.modalState.tags[consts.EVENT_TAG_ORIGINAL_START]) {
props.modalState.start = props.modalState.tags[consts.EVENT_TAG_ORIGINAL_START];
} else if (props.modalState.tags[consts.EVENT_TAG_INSTANCE_START]) {
props.modalState.start = props.modalState.tags[consts.EVENT_TAG_INSTANCE_START];
}

if (props.modalState.tags[consts.EVENT_TAG_ORIGINAL_END]) {
props.modalState.end = props.modalState.tags[consts.EVENT_TAG_ORIGINAL_END];
} else if (props.modalState.tags[consts.EVENT_TAG_INSTANCE_END]) {
props.modalState.end = props.modalState.tags[consts.EVENT_TAG_INSTANCE_END];
}
}

Expand Down

0 comments on commit 4c1ddcb

Please sign in to comment.