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

Hotfix for formio loader bug #61

Merged
merged 3 commits into from
May 26, 2022
Merged

Hotfix for formio loader bug #61

merged 3 commits into from
May 26, 2022

Conversation

devonpis
Copy link
Contributor

  • fix a bug in FormioLoader
  • mark PdfSubmitButton as beta

@devonpis devonpis requested a review from a team May 26, 2022 04:54
@@ -23,7 +23,7 @@ const requestPluginHandler = (requestArgs, opts) => {
// the request url generated by recaptcha component doesn't honor the form options
// https://github.com/formio/formio.js/blob/master/src/components/recaptcha/ReCaptcha.js#L114
// hence the workaround is to inject the project id to the url
if (requestArgs.url.includes(`${opts.formio.base}/recaptcha`)) {
if (requestArgs?.url?.includes(`${opts.formio.base}/recaptcha`)) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what does ? do to this code?

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

check for object and then look for properties

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

shorthand for
if (requestArgs && requestArgs.url && requestArgs.url.includes(${opts.formio.base}/recaptcha))

@devonpis devonpis merged commit af6a479 into main May 26, 2022
@duttonw duttonw deleted the Hotfix-for-FormioLoader-bug branch April 5, 2024 01:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants