diff --git a/services/web/frontend/js/features/editor-left-menu/utils/api.ts b/services/web/frontend/js/features/editor-left-menu/utils/api.ts index bb6f96592a..20578ac586 100644 --- a/services/web/frontend/js/features/editor-left-menu/utils/api.ts +++ b/services/web/frontend/js/features/editor-left-menu/utils/api.ts @@ -38,7 +38,9 @@ type SaveUserSettings = Partial< export function saveUserSettings(data: SaveUserSettings) { postJSON('/user/settings', { - body: data, + body: { + ...data, + }, }) } @@ -51,6 +53,8 @@ export const saveProjectSettings = async ({ ...data }: SaveProjectSettings) => { await postJSON(`/project/${projectId}/settings`, { - body: data, + body: { + ...data, + }, }) }