Skip to content

[Custom Components] must not be an array #999

Open
@saravanapriyanm

Description

@saravanapriyanm

I am using a custom component with the following config:

{
  type: 'cascade',
  selector: 'app-cascade',
  title: 'Cascade Select',
  group: 'basic',
  icon: 'angle-double-down',
  editForm: minimalEditForm,
  fieldOptions: ['key'],
  changeEvent: 'valueChange',
  schema: {
    customDefaultValue: (ctx) => {
      const fields = ctx.component.customOptions.filterValues;
      return fields.map((field) => ({
        key: field.selectParameter,
        value: field.defaultParameter,
      }));
    },
  },
}

Value type for the component is:

{key: string, value: string}[]

When changing value, the following error is shown as validation error:

{field_label_here} must not be an array

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions