keystatic icon indicating copy to clipboard operation
keystatic copied to clipboard

Array members uniqueness

Open florian-lefebvre opened this issue 1 year ago • 0 comments

I don't know is this is a bug or a feature, but given the example from the docs, keystatic doesn't prevent creating duplicated values.

tags: fields.array(
  fields.text({ label: 'Tag' }),
  // Labelling options
  {
    label: 'Tag',
    itemLabel: props => props.value
  }
)

Could be an option like { unique: true }

florian-lefebvre avatar Jun 16 '23 15:06 florian-lefebvre