@betterstart/cli 0.1.29 → 0.1.30

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/cli.js CHANGED
@@ -5651,9 +5651,14 @@ function generateForm(schema, cwd, pagesDir, options = {}) {
5651
5651
  function collectListFields(fields) {
5652
5652
  for (const f of fields) {
5653
5653
  if (f.type === "list" && f.fields && f.fields.length > 0 && !f.hidden) {
5654
- if (!tabFieldNames.has(f.name)) listFieldsWithNested.push(f);
5654
+ listFieldsWithNested.push(f);
5655
5655
  }
5656
5656
  if (f.type === "group" && f.fields) collectListFields(f.fields);
5657
+ if (f.type === "tabs" && f.tabs) {
5658
+ for (const tab of f.tabs) {
5659
+ if (tab.fields) collectListFields(tab.fields);
5660
+ }
5661
+ }
5657
5662
  }
5658
5663
  }
5659
5664
  collectListFields(allFormFields);
@@ -5979,9 +5984,14 @@ function generateSingleForm(schema, cwd, pagesDir, options = {}) {
5979
5984
  function collectListFieldsSingle(fields) {
5980
5985
  for (const f of fields) {
5981
5986
  if (f.type === "list" && f.fields && f.fields.length > 0 && !f.hidden) {
5982
- if (!tabFieldNames.has(f.name)) listFieldsWithNested.push(f);
5987
+ listFieldsWithNested.push(f);
5983
5988
  }
5984
5989
  if (f.type === "group" && f.fields) collectListFieldsSingle(f.fields);
5990
+ if (f.type === "tabs" && f.tabs) {
5991
+ for (const tab of f.tabs) {
5992
+ if (tab.fields) collectListFieldsSingle(tab.fields);
5993
+ }
5994
+ }
5985
5995
  }
5986
5996
  }
5987
5997
  collectListFieldsSingle(allFormFields);