diff --git a/CHANGELOG.md b/CHANGELOG.md index b9d6679..9dd9367 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,12 @@ All notable changes to this project will be documented in this file. Dates are d Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog). +### [7.0.2](https://github.com/eea/volto-metadata-block/compare/7.0.1...7.0.2) - 5 August 2024 + +#### :hammer_and_wrench: Others + +- add style error for the metadata block [dobri1408 - [`905c96d`](https://github.com/eea/volto-metadata-block/commit/905c96d2bdd471a8bb4f1c02d6582d1560a03f2e)] +- Pass errors to metadata block to show them [dobri1408 - [`8e920b0`](https://github.com/eea/volto-metadata-block/commit/8e920b0d6f96bb670deb9275a484d2589af0749a)] ### [7.0.1](https://github.com/eea/volto-metadata-block/compare/7.0.0...7.0.1) - 22 July 2024 #### :house: Internal changes diff --git a/package.json b/package.json index 4d6fcdc..3366177 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@eeacms/volto-metadata-block", - "version": "7.0.1", + "version": "7.0.2", "description": "Volto Metadata Block", "main": "src/index.js", "author": "European Environment Agency: IDM2 A-Team", diff --git a/src/components/manage/Blocks/Metadata/Edit.jsx b/src/components/manage/Blocks/Metadata/Edit.jsx index 70df5a2..dab7410 100644 --- a/src/components/manage/Blocks/Metadata/Edit.jsx +++ b/src/components/manage/Blocks/Metadata/Edit.jsx @@ -15,6 +15,7 @@ const EditMetadataBlock = (props) => { onChangeField, properties, metadata, + errors, } = props; const [metadata_id, setMetadata_id] = useState(data?.data?.id); const schema = useSelector((state) => { @@ -48,6 +49,7 @@ const EditMetadataBlock = (props) => { }} key={metadata_id} block={block} + error={errors?.[metadata_id]} /> ) : (