Array field type broken

Feature(s) impacted

We cannot add new values to all the array fields types

Observed behavior

all array type fields we cannot add new elements to the array, we have the error (see screenshot below)
image

one thing really weird is that if the field have already some values we can have a workaround by moving the “=” next to one of the values and then we can add new values without any errors

but if array length is 0, we have no workaround at the moment

Expected behavior

Failure Logs

TypeError: this.values is not iterable
    at a.addValue

Context

this happens on all our environments and we cannot relate it to any recent changes
we did not change any of these fields and it happens on all array fields

{
      "field": "requirements",
      "type": ["String"],
      "defaultValue": [],
      "enums": null,
      "integration": null,
      "isFilterable": true,
      "isPrimaryKey": false,
      "isReadOnly": false,
      "isRequired": false,
      "isSortable": true,
      "isVirtual": false,
      "reference": null,
      "inverseOf": null,
      "validations": []
    },
"meta": {
    "liana": "forest-express-sequelize",
    "liana_version": "8.5.1",
    "stack": {
      "database_type": "postgres",
      "engine": "nodejs",
      "engine_version": "16.18.0",
      "orm_version": "5.21.13"
    }
  }

Hey @fab

We’ve just revert a recent contribution. Could you try again and tell us if it works as expected?

Thanks in advance

1 Like

Hey @jeffladiray
It works like a charm now :slight_smile:

thanks a lot !

1 Like