Skip to content

Commit

Permalink
Fix common toponyms delete fetch body
Browse files Browse the repository at this point in the history
  • Loading branch information
antoineludeau committed Sep 1, 2023
1 parent 6ddd02c commit d1705bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ban-api/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ export const updateCommonToponyms = async (

export const deleteCommonToponyms = async (ids: BanCommonTopoID[]) => {
try {
const body = JSON.stringify({ ids });
const body = JSON.stringify(ids);
const response = await fetch(`${BAN_API_URL}/common-toponym/delete`, {
method: "POST",
headers: defaultHeader,
Expand Down

0 comments on commit d1705bf

Please sign in to comment.