We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e401969 commit 6646d3dCopy full SHA for 6646d3d
src/ui/pages/events/ManageEvent.page.tsx
@@ -204,11 +204,14 @@ export const ManageEventPage: React.FC = () => {
204
? values.metadata
205
: undefined,
206
};
207
-
208
const eventURL = isEditing
209
? `/api/v1/events/${eventId}`
210
: "/api/v1/events";
211
- await api.post(eventURL, realValues);
+ if (isEditing) {
+ await api.patch(eventURL, realValues);
212
+ } else {
213
+ await api.post(eventURL, realValues);
214
+ }
215
notifications.show({
216
title: isEditing ? "Event updated!" : "Event created!",
217
message: `Changes may take up to ${Math.ceil(EVENT_CACHED_DURATION / 60)} minutes to reflect to users.`,
0 commit comments