Skip to content

Commit

Permalink
Style fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
crspeller committed Jan 4, 2024
1 parent 63acfd5 commit e296e75
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions webapp/src/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -699,7 +699,7 @@ export const doGet = async <TData = any>(url: string) => {
return data;
};

export const doPost = async <TData = any>(url: string, body: any) => {
export const doPost = async <TData = any>(url: string, body: any = undefined) => {
const {data} = await doFetchWithResponse<TData>(url, {
method: 'POST',
body,
Expand All @@ -708,7 +708,7 @@ export const doPost = async <TData = any>(url: string, body: any) => {
return data;
};

export const doPut = async <TData = any>(url: string, body: any) => {
export const doPut = async <TData = any>(url: string, body: any = undefined) => {
const {data} = await doFetchWithResponse<TData>(url, {
method: 'PUT',
body,
Expand Down

0 comments on commit e296e75

Please sign in to comment.