-
Notifications
You must be signed in to change notification settings - Fork 8
[MRF-1] PLU-520: allow mrf forms to be connected #1264
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
base: mrf/trunk
Are you sure you want to change the base?
Conversation
22e3fc7 to
00ee9e2
Compare
00ee9e2 to
04b2a11
Compare
04b2a11 to
63fe548
Compare
63fe548 to
33302ac
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
faced this error when connecting both new and existing MRF forms:

seems to be caused by formDetails.form.payments_field returning undefined
can be fixed by adding the optional chaining at lines 197-200 in packages/backend/src/apps/formsg/triggers/new-submission/get-mock-data.ts:
...(formDetails.form.payments_field?.enabled &&
generateMockPaymentData(
formDetails.form.payments_field?.products ?? [],
)),
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the error in the previous PR is actually fixed in the next PR. lgtm 👍
tested that:
- can connect MRF
- updated error message is shown for wrong form

feat: allow mrf check when connecting forms
Changes
Refactors
To test