# Can't open the constraint dropdowns of the relationship field

**URL:** <https://community.prismic.io/t/cant-open-the-constraint-dropdowns-of-the-relationship-field/3425>\
**Category:** Prismic for Content Creators\
**Created:** [January 5, 2021, 10:25am UTC](https://community.prismic.io/t/cant-open-the-constraint-dropdowns-of-the-relationship-field/3425 "2021-01-05T10:25:30Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![ilyas](https://avatars.discourse-cdn.com/v4/letter/i/f04885/32.png) [@ilyas](https://community.prismic.io/u/ilyas)\
**Post date:** [January 5, 2021, 10:25am UTC](https://community.prismic.io/t/cant-open-the-constraint-dropdowns-of-the-relationship-field/3425/1 "2021-01-05T10:25:30Z")

</div>

Hello,  
I'm trying to add constraints to my relationship field, but the dropdown elements (`Constraint to custom type` and `Constraint to tags`) can't be opened open, clicking on them does nothing. And this is the related error from the console:

```auto
main.js:461 Uncaught TypeError: this.state is not iterable
    at Object.settings#maskbuilder#masks (main.js:461)
    at main.js:310
    at Array.forEach (<anonymous>)
    at HTMLBodyElement.i (main.js:310)
    at HTMLBodyElement.<anonymous> (main.js:310)
    at HTMLBodyElement.dispatch (jquery-2.1.0.min.js:3)
    at HTMLBodyElement.$event.dispatch (drag-tools-2.2x.js:378)
    at HTMLBodyElement.r.handle (jquery-2.1.0.min.js:3)

```

---

<div class="post-metadata">

**Author:** ![Phil](https://dub1.discourse-cdn.com/flex013/user_avatar/community.prismic.io/phil/32/14_2.png) [@Phil](https://community.prismic.io/u/Phil)\
**Post date:** [January 5, 2021, 10:28am UTC](https://community.prismic.io/t/cant-open-the-constraint-dropdowns-of-the-relationship-field/3425/2 "2021-01-05T10:28:58Z")

</div>

Hi IIyas,

Welcome to the community!

I'll be happy to help debug this with you. Can you share with me the your repository URL and the name of the custom type where you are seeing this error?

Thanks.

---

<div class="post-metadata">

**Author:** ![Phil](https://dub1.discourse-cdn.com/flex013/user_avatar/community.prismic.io/phil/32/14_2.png) [@Phil](https://community.prismic.io/u/Phil)\
**Post date:** [January 5, 2021, 12:17pm UTC](https://community.prismic.io/t/cant-open-the-constraint-dropdowns-of-the-relationship-field/3425/5 "2021-01-05T12:17:25Z")

</div>

I was able to recreate this issue. I'm passing this to issue to the dev team and hopefully someone can have a look at this soon. I would imagine it will be at least next week before we can work on this. Hopefully this isn't too much of a blocker in the mean time.

Thanks.

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/flex013/user_avatar/community.prismic.io/system/32/1746_2.png) [@system](https://community.prismic.io/u/system)\
**Post date:** [January 6, 2021, 12:24pm UTC](https://community.prismic.io/t/cant-open-the-constraint-dropdowns-of-the-relationship-field/3425/7 "2021-01-06T12:24:01Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Phil](https://dub1.discourse-cdn.com/flex013/user_avatar/community.prismic.io/phil/32/14_2.png) [@Phil](https://community.prismic.io/u/Phil)\
**Post date:** [January 8, 2021, 3:13pm UTC](https://community.prismic.io/t/cant-open-the-constraint-dropdowns-of-the-relationship-field/3425/8 "2021-01-08T15:13:10Z")

</div>



---

<div class="post-metadata">

**Author:** ![Phil](https://dub1.discourse-cdn.com/flex013/user_avatar/community.prismic.io/phil/32/14_2.png) [@Phil](https://community.prismic.io/u/Phil)\
**Post date:** [January 8, 2021, 3:21pm UTC](https://community.prismic.io/t/cant-open-the-constraint-dropdowns-of-the-relationship-field/3425/10 "2021-01-08T15:21:09Z")

</div>

Just an update for everyone. A fix was worked on for this week and is scheduled to be tested next week.

Thanks.

---

<div class="post-metadata">

**Author:** ![vindian](https://avatars.discourse-cdn.com/v4/letter/v/8797f3/32.png) [@vindian](https://community.prismic.io/u/vindian)\
**Post date:** [January 15, 2021, 8:47pm UTC](https://community.prismic.io/t/cant-open-the-constraint-dropdowns-of-the-relationship-field/3425/12 "2021-01-15T20:47:34Z")

</div>

Hi @Phil ,

any update on the release? Currently this not only blocks changing the constraint but also prevents documents from publishing..

---

<div class="post-metadata">

**Author:** ![andreaszissler](https://avatars.discourse-cdn.com/v4/letter/a/76d3ee/32.png) [@andreaszissler](https://community.prismic.io/u/andreaszissler)\
**Post date:** [January 16, 2021, 2:41pm UTC](https://community.prismic.io/t/cant-open-the-constraint-dropdowns-of-the-relationship-field/3425/13 "2021-01-16T14:41:24Z")

</div>

i got the same bug, this is quite critical and it's a shame that no fix has been deployed yet.

---

<div class="post-metadata">

**Author:** ![Phil](https://dub1.discourse-cdn.com/flex013/user_avatar/community.prismic.io/phil/32/14_2.png) [@Phil](https://community.prismic.io/u/Phil)\
**Post date:** [January 18, 2021, 9:47am UTC](https://community.prismic.io/t/cant-open-the-constraint-dropdowns-of-the-relationship-field/3425/14 "2021-01-18T09:47:39Z")

</div>

Hi Everyone,

The fix for this has been reviewed and tested and should be released this week. Once it's out we'll update you here.

Thanks.

---

<div class="post-metadata">

**Author:** ![rkristie](https://avatars.discourse-cdn.com/v4/letter/r/a88e57/32.png) [@rkristie](https://community.prismic.io/u/rkristie)\
**Post date:** [January 24, 2021, 6:58am UTC](https://community.prismic.io/t/cant-open-the-constraint-dropdowns-of-the-relationship-field/3425/15 "2021-01-24T06:58:54Z")

</div>

Is there any update on this? This is pretty critical in our move to prismic and is holding us up quite a bit

---

<div class="post-metadata">

**Author:** ![Phil](https://dub1.discourse-cdn.com/flex013/user_avatar/community.prismic.io/phil/32/14_2.png) [@Phil](https://community.prismic.io/u/Phil)\
**Post date:** [January 25, 2021, 10:22am UTC](https://community.prismic.io/t/cant-open-the-constraint-dropdowns-of-the-relationship-field/3425/16 "2021-01-25T10:22:36Z")

</div>

Hi Rob,

Welcome to the community!

This fix will be released in the next few days. I'll talk with the team to find out exactly when.

---

<div class="post-metadata">

**Author:** ![jan.griffioen-jarfal](https://dub1.discourse-cdn.com/flex013/user_avatar/community.prismic.io/jan.griffioen-jarfal/32/1989_2.png) [@jan.griffioen-jarfal](https://community.prismic.io/u/jan.griffioen-jarfal)\
**Post date:** [January 25, 2021, 1:28pm UTC](https://community.prismic.io/t/cant-open-the-constraint-dropdowns-of-the-relationship-field/3425/17 "2021-01-25T13:28:40Z")

</div>

Is the recommended workaround to remove all constraints if you need to add new constraints?

---

<div class="post-metadata">

**Author:** ![Phil](https://dub1.discourse-cdn.com/flex013/user_avatar/community.prismic.io/phil/32/14_2.png) [@Phil](https://community.prismic.io/u/Phil)\
**Post date:** [January 25, 2021, 2:47pm UTC](https://community.prismic.io/t/cant-open-the-constraint-dropdowns-of-the-relationship-field/3425/18 "2021-01-25T14:47:14Z")

</div>

Hi again everyone,

So I had an update from the team. This was a due to be released last week as you know, but during the process another bug was discovered and this had to be moved back and reworked. The team is working hard on this, but there won't be a fix released this week.

Fortunately though there is a workaround! In the custom type builder, select the 'JSON Editor' tab, find your content relationship and add your constraint here with the `"customtypes" : [""],` option. You can see below I've added a constraint to my `author` custom type.

```auto
    "author_link" : {
      "type" : "Link",
      "config" : {
        "select" : "document",
        "customtypes" : ["author"],
        "label" : "Author Link"
      }
    },

```

Hopefully this workaround should help you all advance with your projects for the moment. In the meantime we'll keep working on this and we are again sorry for any inconvenience this is causing you.

Thanks.

---

<div class="post-metadata">

**Author:** ![vindian](https://avatars.discourse-cdn.com/v4/letter/v/8797f3/32.png) [@vindian](https://community.prismic.io/u/vindian)\
**Post date:** [January 25, 2021, 8:07pm UTC](https://community.prismic.io/t/cant-open-the-constraint-dropdowns-of-the-relationship-field/3425/19 "2021-01-25T20:07:50Z")

</div>

@Phil  
Thanks for the solution. We could have got this solution 3 weeks earlier ;). I found that publish does not work well with adblocker because of the newly added sentry I guess. Please check this as this was not the issue last month

---

<div class="post-metadata">

**Author:** ![Phil](https://dub1.discourse-cdn.com/flex013/user_avatar/community.prismic.io/phil/32/14_2.png) [@Phil](https://community.prismic.io/u/Phil)\
**Post date:** [January 26, 2021, 10:58am UTC](https://community.prismic.io/t/cant-open-the-constraint-dropdowns-of-the-relationship-field/3425/20 "2021-01-26T10:58:43Z")

</div>

Yeah, that was my bad. I made the assumption this would be resolved sooner. My apologies. For the second issue can you create a new thread and share with us a screen recording of the and/or any errors you're getting in the console?

---

<div class="post-metadata">

**Author:** ![pete](https://dub1.discourse-cdn.com/flex013/user_avatar/community.prismic.io/pete/32/410_2.png) [@pete](https://community.prismic.io/u/pete)\
**Post date:** [February 4, 2021, 12:37pm UTC](https://community.prismic.io/t/cant-open-the-constraint-dropdowns-of-the-relationship-field/3425/21 "2021-02-04T12:37:59Z")

</div>

Just hit this too; would love to have this solved!

---

<div class="post-metadata">

**Author:** ![red](https://dub1.discourse-cdn.com/flex013/user_avatar/community.prismic.io/red/32/1695_2.png) [@red](https://community.prismic.io/u/red)\
**Post date:** [February 9, 2021, 9:06pm UTC](https://community.prismic.io/t/cant-open-the-constraint-dropdowns-of-the-relationship-field/3425/22 "2021-02-09T21:06:34Z")

</div>

Experienced the same error too, just now. I used the JSON editor workaround which seems to work.

---

<div class="post-metadata">

**Author:** ![Wassim](https://avatars.discourse-cdn.com/v4/letter/w/4bbf92/32.png) [@Wassim](https://community.prismic.io/u/Wassim)\
**Post date:** [February 10, 2021, 8:07am UTC](https://community.prismic.io/t/cant-open-the-constraint-dropdowns-of-the-relationship-field/3425/23 "2021-02-10T08:07:33Z")

</div>

Can someone fix this please?

---

<div class="post-metadata">

**Author:** ![Phil](https://dub1.discourse-cdn.com/flex013/user_avatar/community.prismic.io/phil/32/14_2.png) [@Phil](https://community.prismic.io/u/Phil)\
**Post date:** [February 10, 2021, 10:54am UTC](https://community.prismic.io/t/cant-open-the-constraint-dropdowns-of-the-relationship-field/3425/24 "2021-02-10T10:54:56Z")

</div>

The fix is currently being worked on. In the meantime, please try the workaround.

> [@Can't open the constraint dropdowns of the relationship field](https://community.prismic.io/t/cant-open-the-constraint-dropdowns-of-the-relationship-field/3425/18):
>
> Hi again everyone, So I had an update from the team. This was a due to be released last week as you know, but during the process another bug was discovered and this had to be moved back and reworked. The team is working hard on this, but there won't be a fix released this week. Fortunately though there is a workaround! In the custom type builder, select the 'JSON Editor' tab, find your content relationship and add your constraint here with the "customtypes" : [""], option. You can see below …

We'll update everyone here once this is done.

Thanks.

---

<div class="post-metadata">

**Author:** ![minghao](https://dub1.discourse-cdn.com/flex013/user_avatar/community.prismic.io/minghao/32/1700_2.png) [@minghao](https://community.prismic.io/u/minghao)\
**Post date:** [February 10, 2021, 5:23am UTC](https://community.prismic.io/t/cant-open-the-constraint-dropdowns-of-the-relationship-field/3425/25 "2021-02-10T05:23:51Z")

</div>

Description:  
During editing content relationship, the constraints are not working.

Reproduce Steps:

1. Find a Custom Type, and click into it
2. Add a content relationship field
3. Add constraint to custom type or add constraint to tags
4. Nothing happens. Meanwhile the following errors in console  
main.js:494 Uncaught TypeError: this.state is not iterable  
at Object.settings#maskbuilder#masks (main.js:494)  
at main.js:305  
at Array.forEach ()  
at HTMLBodyElement.i (main.js:305)  
at HTMLBodyElement. (main.js:305)  
at HTMLBodyElement.dispatch (jquery-2.1.0.min.js:3)  
at HTMLBodyElement.$event.dispatch (drag-tools-2.2x.js:378)  
at HTMLBodyElement.r.handle (jquery-2.1.0.min.js:3)  
(anonymous) @ main.js:494  
(anonymous) @ main.js:305  
i @ main.js:305  
(anonymous) @ main.js:305  
dispatch @ jquery-2.1.0.min.js:3  
event.dispatch @ drag-tools-2.2x.js:378 r.handle @ jquery-2.1.0.min.js:3 main.js:494 Uncaught TypeError: this.state is not iterable at onClickOpen (main.js:494) at s.default.createElement.onClick (main.js:329) at Object.s (main.js:437) at p (main.js:437) at main.js:437 at v (main.js:437) at at (main.js:437) at it (main.js:437) at st (main.js:437) at pt (main.js:437) at j (main.js:437) at (main.js:437)  
at Zt (main.js:437)  
at Xt (main.js:437)  
at t.unstable\_runWithPriority (main.js:445)  
at Gi (main.js:437)  
at D (main.js:437)  
at Kt (main.js:437)

 ![Screen Shot 2021-02-09 at 9.22.26 PM](https://europe1.discourse-cdn.com/flex013/uploads/prismic/original/2X/1/16cbc871307d1a1ce638bb25aa0e73f9dfe4acf7.png)

[Next page](https://community.prismic.io/t/cant-open-the-constraint-dropdowns-of-the-relationship-field/3425.md?page=2)
