diff --git a/extensions/blocks/calendly/index.js b/extensions/blocks/calendly/index.js index 05016cb44c025..33d29c5f0c5d2 100644 --- a/extensions/blocks/calendly/index.js +++ b/extensions/blocks/calendly/index.js @@ -33,7 +33,7 @@ export const settings = { html: false, }, edit, - save: () => null, + save: ( { attributes: { url } } ) => { url }, attributes, example: { attributes: { diff --git a/extensions/blocks/opentable/index.js b/extensions/blocks/opentable/index.js index 6654eb1070c2e..ebac720f60736 100644 --- a/extensions/blocks/opentable/index.js +++ b/extensions/blocks/opentable/index.js @@ -33,11 +33,19 @@ export const settings = { html: false, }, edit, - save: () => null, + save: ( { attributes: { rid } } ) => ( + <> + { rid.map( restaurantId => ( + + { `https://www.opentable.com/restref/client/?rid=${ restaurantId }` } + + ) ) } + + ), attributes: defaultAttributes, example: { attributes: { - rid: '1', + rid: [ '1' ], style: 'standard', iframe: true, domain: 'com',