Can't select specific custom type in Content Relationship field

Hey,

I'm getting an error when I try to add a content relationship field, the "constraint to custom type" is grayed out.

There is an error in the inspector log "this.state is not iterable"

The repo is https://picpus.prismic.io/

I hope you can help.

Thanks,
Kristian

Hello Kristian,

Thanks for reaching out to us.

This is a known issue, and our dev team is working hard on this.

Fo now, there is a workaround. You can put constraints in the JSON, and it will work. Here are steps to do it:

  1. Go to the custom-type builder.
  2. Select the 'JSON Editor' tab.
  3. Find the content relationship field and add constraint here with the "customtypes" : [ "" ], option.
    "case_link" : {
      "type" : "Link",
      "config" : {
        "select" : "document",
        "customtypes" : [ "case" ],
        "label" : "Case Link"
      }
    },

Sorry for the inconvenience. I will update you here once there is a release for this bug.

Thanks.
Priyanka

Thanks I will try that.

Have a nice day!

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.