mirror of
https://github.com/urosran/cally.git
synced 2025-11-26 16:34:54 +00:00
- Fixed issue with events not being mapped correctly when fetched(missing attributes)
- Fixed issue with editing of events because of incorrect attribute name - Color events created by other user, but assigned to current user in the current user's color
This commit is contained in:
@ -130,7 +130,7 @@ export const ManuallyAddEventModal = () => {
|
||||
editEvent?.end ?? initialDate ?? new Date()
|
||||
);
|
||||
const [selectedAttendees, setSelectedAttendees] = useState<string[]>(
|
||||
editEvent?.participants ?? []
|
||||
editEvent?.attendees ?? []
|
||||
);
|
||||
const [repeatInterval, setRepeatInterval] = useState<PickerMultiValue>([]);
|
||||
|
||||
@ -187,7 +187,8 @@ export const ManuallyAddEventModal = () => {
|
||||
|
||||
setStartDate(initialDate ?? new Date());
|
||||
setEndDate(editEvent?.end ?? initialDate ?? new Date());
|
||||
setSelectedAttendees(editEvent?.participants ?? []);
|
||||
setSelectedAttendees(editEvent?.attendees ?? []);
|
||||
setLocation(editEvent?.location ?? "");
|
||||
setRepeatInterval([]);
|
||||
}, [editEvent, selectedNewEventDate]);
|
||||
|
||||
@ -664,7 +665,7 @@ export const ManuallyAddEventModal = () => {
|
||||
|
||||
<TextField
|
||||
value={location}
|
||||
onChangeText={setLocation}
|
||||
onChangeText={(text) => setLocation(text)}
|
||||
ref={locationRef}
|
||||
maxLength={2000}
|
||||
multiline
|
||||
|
||||
Reference in New Issue
Block a user