We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 68c3165 commit c4d29faCopy full SHA for c4d29fa
src/model/FormGenerator.js
@@ -33,11 +33,11 @@ export default class FormGenerator {
33
let formProperties;
34
let form;
35
return jsonld
36
- .flatten(structure, {})
37
- .then((flattenedStructure) => {
+ .compact(structure, {})
+ .then((compactedStructure) => {
38
try {
39
const [formQuestions, rootForm] =
40
- FormGenerator._constructFormQuestions(flattenedStructure, intl);
+ FormGenerator._constructFormQuestions(compactedStructure, intl);
41
form = rootForm;
42
formProperties = {
43
formQuestions,
0 commit comments