Skip to content

Commit

Permalink
Merge branch 'develop' into chore/KBDEV-1095-package-updates
Browse files Browse the repository at this point in the history
  • Loading branch information
kttkjl authored Apr 23, 2024
2 parents f37b21d + f711158 commit 0ee651c
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/services/api/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,9 @@ const MAX_SUGGESTIONS = 50;
* @param {Object} payload - PATCH payload.
*/
const patch = (endpoint: string, payload: Record<string, unknown>): Promise<GeneralRecordType> => {
// 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);
};
Expand Down

0 comments on commit 0ee651c

Please sign in to comment.