Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/update form submission prop data #449

Merged
merged 1 commit into from
Jun 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading