update api call for creating an event

This commit is contained in:
Michael Fatemi 2021-06-30 21:29:05 -04:00
parent c0a00945ef
commit 66b5c8aff6

View File

@ -106,6 +106,9 @@ export default function EventCreator({ group }: { group: IGroup }) {
endTime, endTime,
groupId: group.id, groupId: group.id,
placeId, placeId,
recurring,
daysOfWeek,
endDate,
}) })
.then((response) => response.json()) .then((response) => response.json())
.then(({ id }) => { .then(({ id }) => {
@ -113,7 +116,17 @@ export default function EventCreator({ group }: { group: IGroup }) {
}) })
.finally(() => setCreating(false)); .finally(() => setCreating(false));
} }
}, [creating, name, startTime, endTime, group.id, placeId]); }, [
creating,
name,
startTime,
endTime,
group.id,
placeId,
recurring,
daysOfWeek,
endDate,
]);
return ( return (
<UISecondaryBox style={{ width: '100%', boxSizing: 'border-box' }}> <UISecondaryBox style={{ width: '100%', boxSizing: 'border-box' }}>