From 51469f9924fa61931e2146992160e9d212a213a4 Mon Sep 17 00:00:00 2001 From: Kerry Liu Date: Wed, 12 Jun 2019 15:40:05 -0700 Subject: [PATCH 1/2] Test if this fixes api save validation --- extensions/blocks/contact-form/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/extensions/blocks/contact-form/index.js b/extensions/blocks/contact-form/index.js index e2a90c89b9545..a2beca100e9f8 100644 --- a/extensions/blocks/contact-form/index.js +++ b/extensions/blocks/contact-form/index.js @@ -69,7 +69,7 @@ export const settings = { }, edit: JetpackContactForm, - save: InnerBlocks.Content, + save: function() { return ( ); }, deprecated: [ { attributes: { @@ -107,7 +107,7 @@ export const settings = { return true; }, - save: InnerBlocks.Content, + save: function() { return ( ); }, }, ], }; From a475ada545d737ad6dfb7e186f4712b0167e3e55 Mon Sep 17 00:00:00 2001 From: Kerry Liu Date: Fri, 14 Jun 2019 09:39:11 -0700 Subject: [PATCH 2/2] Wrap InnerBlocks.Content in a function --- extensions/blocks/contact-form/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/extensions/blocks/contact-form/index.js b/extensions/blocks/contact-form/index.js index a2beca100e9f8..069b72f817dbf 100644 --- a/extensions/blocks/contact-form/index.js +++ b/extensions/blocks/contact-form/index.js @@ -69,7 +69,7 @@ export const settings = { }, edit: JetpackContactForm, - save: function() { return ( ); }, + save: () => , deprecated: [ { attributes: { @@ -107,7 +107,7 @@ export const settings = { return true; }, - save: function() { return ( ); }, + save: () => , }, ], };