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:
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)
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?
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.
system
(system)
closed as resolved, flag & select 'Something Else' to reopen.
7
This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.
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.
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.
@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
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?
Description:
During editing content relationship, the constraints are not working.
Reproduce Steps:
Find a Custom Type, and click into it
Add a content relationship field
Add constraint to custom type or add constraint to tags
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)