Javascript error on form preview in Gutenberg editor when using custom attributes

I have created a custom plugin that makes it possible to add custom visibility conditions to every Gutenberg Block available. Also a Gravity Forms form embed in Gutenberg. But a javascript error occurs when I try to save this custom attribute when you display a selected form in Preview mode.
The error says:

Uncaught Error: Objects are not valid as a React child (found: object with keys {error, errorMsg}). If you meant to render a collection of children, use an array instead.

There is also an error in a GET cal to: /wp-json/wp/v2/block-renderer/gravityforms/form. This error says:

{code: "rest_invalid_param", message: "Ongeldige parameter(s): attributes",…}
code: "rest_invalid_param"
data: {status: 400, params: {attributes: "csConditions is geen geldige eigenschap van Object."},…}
details: {attributes: {code: "rest_additional_properties_forbidden",…}}
attributes: {code: "rest_additional_properties_forbidden",…}
params: {attributes: "csConditions is geen geldige eigenschap van Object."}
attributes: "csConditions is geen geldige eigenschap van Object."
status: 400
message: "Ongeldige parameter(s): attributes"

This Gravity Forms block is the only block that creates this error. Every other block works just fine. Is this a bug in GF or am I missing something?

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