webiny-js icon indicating copy to clipboard operation
webiny-js copied to clipboard

Headless CMS: Null items not allowed for Text field set to "use as a list of texts" even when field is set as not required

Open jimjoes opened this issue 3 years ago • 2 comments

Version

5.27.0

Operating System

MacOS

Browser

Chrome

What steps will reproduce the bug?

Create a content model with text field called tags set to use as a list of texts and not required. Save item,

What is the expected behavior?

Null list values should be allowed if field is not required

What do you see instead?

item fails to save and API responds with message: "Variable \"$data\" got invalid value null at \"data.tags[0]\"; Expected non-nullable type \"String!\" not to be null."

Additional information

No response

Possible solution

No response

jimjoes avatar Jun 07 '22 11:06 jimjoes

Thanks @jimjoes! We'll have someone look into this.

Pavel910 avatar Jun 07 '22 12:06 Pavel910

+1

uncle-mo avatar Sep 09 '22 00:09 uncle-mo