diff --git a/web/src/components/Notifications.js b/web/src/components/Notifications.js index 87756b9..9a4baf7 100644 --- a/web/src/components/Notifications.js +++ b/web/src/components/Notifications.js @@ -399,7 +399,9 @@ const performHttpAction = async (notification, action) => { const response = await fetch(action.url, { method: action.method ?? "POST", headers: action.headers ?? {}, - body: action.body ?? "" + // This must not null-coalesce to a non nullish value. Otherwise, the fetch API + // will reject it for "having a body" + body: action.body }); console.log(`[Notifications] HTTP user action response`, response); const success = response.status >= 200 && response.status <= 299;