mirror of
https://github.com/UA-Fediland/synapse-admin.git
synced 2024-11-10 00:34:51 +00:00
Fix update in dataProvider
Fixes #461 Change-Id: Icc4b0264cfda04a8a28595d153c43cdf75524673
This commit is contained in:
parent
abc677dc16
commit
8688ab7d0e
1 changed files with 1 additions and 1 deletions
|
@ -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 }) => ({
|
||||||
|
|
Loading…
Reference in a new issue