Fix update in dataProvider
Fixes #461 Change-Id: Icc4b0264cfda04a8a28595d153c43cdf75524673
This commit is contained in:
parent
abc677dc16
commit
8688ab7d0e
@ -456,7 +456,7 @@ const dataProvider = {
|
||||
const res = resourceMap[resource];
|
||||
|
||||
const endpoint_url = homeserver + res.path;
|
||||
return jsonClient(`${endpoint_url}/${encodeURIComponent(params.data.id)}`, {
|
||||
return jsonClient(`${endpoint_url}/${encodeURIComponent(params.id)}`, {
|
||||
method: "PUT",
|
||||
body: JSON.stringify(params.data, filterNullValues),
|
||||
}).then(({ json }) => ({
|
||||
|
Loading…
Reference in New Issue
Block a user