From b0b6c8de7e89d28888847f96653f2eb1572a0fd3 Mon Sep 17 00:00:00 2001 From: wildone Date: Mon, 16 Sep 2024 00:48:25 +1000 Subject: [PATCH] default to form post if not set. --- .../components/forms/form/clientlibs/functions.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/application/backend/src/main/resources/apps/typerefinery/components/forms/form/clientlibs/functions.js b/application/backend/src/main/resources/apps/typerefinery/components/forms/form/clientlibs/functions.js index af47fb9ef..86dc43233 100644 --- a/application/backend/src/main/resources/apps/typerefinery/components/forms/form/clientlibs/functions.js +++ b/application/backend/src/main/resources/apps/typerefinery/components/forms/form/clientlibs/functions.js @@ -295,8 +295,8 @@ window.Typerefinery.Page.Files = Typerefinery.Page.Files || {}; if (!writePayloadType || !writeMethod ) { writePayloadType = "application/json"; writeMethod = "POST"; - console.log("Payload type or method not set, defaulting to JSON and POST."); - return; + console.warn("Payload type or method not set, defaulting to JSON and POST."); + // return; } const payload = await ns.getFormData($component); ns.updateButtonState($component, "loading");