Fix update in dataProvider

Fixes #461

Change-Id: Icc4b0264cfda04a8a28595d153c43cdf75524673
This commit is contained in:
Manuel Stahl 2024-02-07 16:48:28 +01:00
parent abc677dc16
commit 8688ab7d0e

View file

@ -456,7 +456,7 @@ const dataProvider = {
const res = resourceMap[resource]; const res = resourceMap[resource];
const endpoint_url = homeserver + res.path; const endpoint_url = homeserver + res.path;
return jsonClient(`${endpoint_url}/${encodeURIComponent(params.data.id)}`, { return jsonClient(`${endpoint_url}/${encodeURIComponent(params.id)}`, {
method: "PUT", method: "PUT",
body: JSON.stringify(params.data, filterNullValues), body: JSON.stringify(params.data, filterNullValues),
}).then(({ json }) => ({ }).then(({ json }) => ({