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

FIO-8141 Fixed error for nested forms in deployed in jsfiddle #5551

Conversation

HannaKurban
Copy link
Contributor

Link to Jira Ticket

https://formio.atlassian.net/browse/FIO-8141

Description

Previously, when loading a Nested Form component via jsfiddle, an incorrect request was sent to load the child form. As a result, error 400 occurred and the form was not displayed. This has been fixed by adding an additional check for the formSrc property

Dependencies

no

How has this PR been tested?

locally with using JSFiddle

Checklist:

  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation (if applicable)
  • My changes generate no new warnings
  • My changes include tests that prove my fix is effective (or that my feature works as intended)
  • New and existing unit/integration tests pass locally with my changes
  • Any dependent changes have corresponding PRs that are listed above

@@ -90,7 +90,17 @@ export default class FormComponent extends Component {
if (!this.formSrc && this.options.formio) {
const rootSrc = this.options.formio.formsUrl;
if (this.component.form && isMongoId(this.component.form)) {
this.formSrc = `${rootSrc}/${this.component.form}`;
if (
Copy link
Member

Choose a reason for hiding this comment

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

This change seems very specific and worries me that this is a band-aid for a problem that would be fixed elsewhere. Let's talk through this in Dev Support.

@HannaKurban HannaKurban closed this Apr 3, 2024
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.

2 participants