Nested fields dissapeared

Hi, today i noticed that the visualization of nested fields disappeared. Is this a bug?

Thanks

Hi @marc,

Could you be more specific about what you mean by nested fields disappeared?

Maybe a screenshot could be of some help.

Screenshot:

image

My schema:

const passengerSchema = new Schema({
  identityDoc: {
    type: new Schema({
      docNum: {
        type: String,
        required: true
      },
      docType: {
        type: String,
        enum: ['NIF', 'Passport'],
        required: true
      }
    }, {
      timestamps: false,
      _v: false,
      _id: false
    }),
    required: true
  },
},
{
  timestamps: true
})

My forestadmin-schema.json config:

{
      "field": "identityDoc",
      "type": {
        "fields": [{
          "field": "docNum",
          "type": "String"
        }, {
          "field": "docType",
          "type": "Enum",
          "enums": ["NIF", "Passport"]
        }]
      },
      "defaultValue": null,
      "enums": null,
      "integration": null,
      "isFilterable": true,
      "isReadOnly": false,
      "isRequired": true,
      "isSortable": true,
      "isVirtual": false,
      "reference": null,
      "inverseOf": null,
      "validations": [{
        "message": null,
        "type": "is present",
        "value": null
      }]
    },

I’ve been able to reproduce, thank you for reaching out with this issue. I’ll make a ticket right away!

Hi @marc,

Thanks for the report.
This regression is now fixed.

Let us know if that’s not what you observe after a browser page refresh.

1 Like