From f5a509615a83bbffb0887baf1a6069e3b30cb30d Mon Sep 17 00:00:00 2001 From: jackahl Date: Mon, 22 Jan 2024 12:36:27 +0100 Subject: [PATCH] rename link field to href to make it use the correct adapter --- news/14.breaking | 1 + src/components/Logo/View.jsx | 4 ++-- src/components/Logo/schema.js | 6 +++--- 3 files changed, 6 insertions(+), 5 deletions(-) create mode 100644 news/14.breaking 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',