formio.js
formio.js copied to clipboard
Fixed an issue where the 'root' may be the component that does not have a getComponent method.
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