diff --git a/src/services/api/index.tsx b/src/services/api/index.tsx index e5f53123..2abc2075 100644 --- a/src/services/api/index.tsx +++ b/src/services/api/index.tsx @@ -34,11 +34,9 @@ const MAX_SUGGESTIONS = 50; * @param {Object} payload - PATCH payload. */ const patch = (endpoint: string, payload: Record): Promise => { - // strip out the display name to have it force-regenerate - const { displayName, ...changes } = payload; const init = { method: 'PATCH', - body: jc.stringify(changes), + body: jc.stringify(payload), }; return request(endpoint, init); };