Skip to content

Commit

Permalink
fix: paragraph was not enabled on submit model
Browse files Browse the repository at this point in the history
  • Loading branch information
pksorensen committed Aug 26, 2024
1 parent af3872e commit 9ea3903
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@

export type QuickFormSubmitDefinition = {
text: string;
paragraph: string;
// paragraphs: string[];
buttonText: string;
submitFields: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ function handleSubmit(submit: QuickFormSubmitDefinition, payload: any): SubmitMo

return {
text: uiSchema?.["ui:label"] === false ? '' : schema?.title ?? submit?.text ?? "Submit QuickForm",
paragraph: uiSchema?.["ui:label"] === false ? '' : schema?.description,
paragraph: uiSchema?.["ui:label"] === false ? '' : schema?.description ?? submit?.paragraph,
buttonText: submit?.buttonText ?? "Submit",
submitFields: submitFieldsArray,
submitUrl: submit.submitUrl,
Expand Down

0 comments on commit 9ea3903

Please sign in to comment.