diff --git a/news/14.breaking b/news/14.breaking new file mode 100644 index 0000000..95770af --- /dev/null +++ b/news/14.breaking @@ -0,0 +1 @@ +rename "link" field to "href" to make it use the correct adapter diff --git a/src/components/Logo/View.jsx b/src/components/Logo/View.jsx index 3d666b9..1cb22bd 100644 --- a/src/components/Logo/View.jsx +++ b/src/components/Logo/View.jsx @@ -29,14 +29,14 @@ const View = (props) => { )} {logo && - (isEditMode || !data.link?.length > 0 ? ( + (isEditMode || !data.href?.length > 0 ? ( placeholder ) : ( - + placeholder { id: 'default', title: 'Default', fields: config.blocks.blocksConfig.logo.showDescriptionField - ? ['logo', 'heading', 'description', 'link'] - : ['logo', 'heading', 'link'], + ? ['logo', 'heading', 'description', 'href'] + : ['logo', 'heading', 'href'], }, ], properties: { @@ -57,7 +57,7 @@ export const LogoBlockSchema = (props) => { title: props.intl.formatMessage(messages.description), widget: 'text', }, - link: { + href: { title: props.intl.formatMessage(messages.link), widget: 'object_browser', mode: 'link',