Skip to content

Commit

Permalink
fix: support ui:label in submitfields
Browse files Browse the repository at this point in the history
  • Loading branch information
pksorensen committed Jun 6, 2024
1 parent 13bfe40 commit ab9b822
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit ab9b822

Please sign in to comment.