mirror of
https://github.com/Awesome-Technologies/synapse-admin.git
synced 2024-10-31 06:55:15 +03: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 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 a new issue