- Issue created by @Petr Illek
- Merge request !17Add condition for preventing console errors if settings.paragraphs_features are not defined. → (Open) created by Petr Illek
- 🇨🇿Czech Republic Petr Illek
Adding a simple fix, which fixed the issue for me.
Got a console error under certain conditions.
I enabled the module, do not set the Add in between feature, but do have the Add above enabled.
There is no default paragraph set in the widget.
When I try to add a page I got a console error settings.paragraphs_features is undefined
.
It might be due to some other module.
Add a condition to the JS to run only if settings.paragraphs_features is defined.
Active
2.0
Code
Adding a simple fix, which fixed the issue for me.