Skip to content

Commit

Permalink
Merge pull request #449 from USEPA/feature/update-form-submission-pro…
Browse files Browse the repository at this point in the history
…p-data

Feature/update form submission prop data
  • Loading branch information
courtneymyers authored Jun 10, 2024
2 parents 31f9bb9 + c14947e commit 783c500
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 3 deletions.
4 changes: 1 addition & 3 deletions app/client/src/routes/change2023.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -87,9 +87,7 @@ export function Change2023() {
<Form
form={formSchema.json}
url={formSchema.url} // NOTE: used for file uploads
submission={{
data: { ...submission.data },
}}
submission={submission}
options={{
readOnly: true,
noAlerts: true,
Expand Down
1 change: 1 addition & 0 deletions app/client/src/routes/crf2022.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -270,6 +270,7 @@ function CloseOutRequestForm(props: { email: string }) {
form={formSchema.json}
url={formSchema.url} // NOTE: used for file uploads
submission={{
...submission,
data: {
...submission.data,
last_updated_by: email,
Expand Down
1 change: 1 addition & 0 deletions app/client/src/routes/frf2022.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -418,6 +418,7 @@ function FundingRequestForm(props: { email: string }) {
form={formSchema.json}
url={formSchema.url} // NOTE: used for file uploads
submission={{
...submission,
data: {
...submission.data,
last_updated_by: email,
Expand Down
1 change: 1 addition & 0 deletions app/client/src/routes/frf2023.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -404,6 +404,7 @@ function FundingRequestForm(props: { email: string }) {
form={formSchema.json}
url={formSchema.url} // NOTE: used for file uploads
submission={{
...submission,
data: {
...submission.data,
_user_email: email,
Expand Down
1 change: 1 addition & 0 deletions app/client/src/routes/prf2022.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -291,6 +291,7 @@ function PaymentRequestForm(props: { email: string }) {
form={formSchema.json}
url={formSchema.url} // NOTE: used for file uploads
submission={{
...submission,
data: {
...submission.data,
last_updated_by: email,
Expand Down
1 change: 1 addition & 0 deletions app/client/src/routes/prf2023.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -289,6 +289,7 @@ function PaymentRequestForm(props: { email: string }) {
form={formSchema.json}
url={formSchema.url} // NOTE: used for file uploads
submission={{
...submission,
data: {
...submission.data,
_user_email: email,
Expand Down

0 comments on commit 783c500

Please sign in to comment.