This commit is contained in:
2026-01-01 09:50:07 +01:00
parent d109388af5
commit bd507eb9ea
3 changed files with 3 additions and 6 deletions
+1 -2
View File
@@ -48,8 +48,7 @@ export default async function fetchApi<
let fetchData;
let fetchOptions: RequestInit = {};
if (options.method.match(/get/i) || !options.method) {
} else {
if (options.method.match(/post|put|delete|patch/i)) {
if (options.body && typeof options.body === "object") {
fetchOptions.body = JSON.stringify(options.body);
}