Closed Hless closed 3 years ago
If I understand correctly this issue occurs because the field is null on the CMS side, when I do the following actions in DatoCMS the build error goes away:
This is a bit of a tedious operation if you have 20 pages with 3 translations each for example. In my opinion the query should return null/undefined
, or { value: null }
for the field, instead of throwing an error.
Hey @Hless, sorry to hear that, could you please give us the ID of a DatoCMS record with the wrong value for the Structured Text field? I'd like to inspect it myself and see exactly how we can fix them. Thanks!
Nevermind, I was able to reproduce it myself! This should be fixed in v2.6.10!
Great stuff! Thanks for the quick reactions
I have an optional structured text field in my block model. I added this field after already having created various blocks of this type in the DatoCMS editor. When querying the field with GraphQL I get the following error when querying blocks that were not changed since adding the field:
Query:
Packages: