formio.js icon indicating copy to clipboard operation
formio.js copied to clipboard

Fixed an issue where the 'root' may be the component that does not have a getComponent method.

Open travist opened this issue 1 year ago • 0 comments

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

Description

The tests in formio CVEExporter are failing because it creates the components with Component.create(). The issue is that this will crash if the component has a simple conditional since the component does not have a method getComponent.

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

travist avatar Jul 03 '24 16:07 travist