From ab9b8225548a5665fc2385ef5e9a89171590bb87 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Poul=20Kjeldager=20S=C3=B8rensen?= Date: Thu, 6 Jun 2024 09:37:33 +0200 Subject: [PATCH] fix: support ui:label in submitfields --- .../core/src/services/defaults/DefaultModelTransformer.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/core/src/services/defaults/DefaultModelTransformer.ts b/packages/core/src/services/defaults/DefaultModelTransformer.ts index 64fe908..42e8cfc 100644 --- a/packages/core/src/services/defaults/DefaultModelTransformer.ts +++ b/packages/core/src/services/defaults/DefaultModelTransformer.ts @@ -173,8 +173,8 @@ function handleSubmit(submit: QuickFormSubmitDefinition, payload: any): SubmitMo }); return { - text: schema?.title ?? submit?.text ?? "Submit QuickForm", - paragraph: schema?.description, + text: uiSchema["ui:label"] === false ? '': schema?.title ?? submit?.text ?? "Submit QuickForm", + paragraph: uiSchema["ui:label"] === false ? '' : schema?.description, buttonText: submit?.buttonText ?? "Submit", submitFields: submitFieldsArray, submitUrl: submit.submitUrl,