kristian
(Kristian Johansen)
1
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
Priyanka
(Priyanka Maheshwari)
2
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:
- Go to the custom-type builder.
- Select the 'JSON Editor' tab.
- 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
system
(system)
closed as resolved, flag & select 'Something Else' to reopen.
5
This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.