diff --git a/package.json b/package.json index 494d103..c2e7aa9 100644 --- a/package.json +++ b/package.json @@ -28,7 +28,8 @@ "dotenv": "^16.3.2", "husky": "^8.0.3", "lint-staged": "^14.0.1", - "md5": "^2.3.0" + "md5": "^2.3.0", + "cypress": "13.1.0" }, "lint-staged": { "src/**/*.{js,jsx,ts,tsx,json}": [ diff --git a/src/components/manage/Blocks/MetadataSection/EditMetadataSection.jsx b/src/components/manage/Blocks/MetadataSection/EditMetadataSection.jsx index 432001d..5121e48 100644 --- a/src/components/manage/Blocks/MetadataSection/EditMetadataSection.jsx +++ b/src/components/manage/Blocks/MetadataSection/EditMetadataSection.jsx @@ -14,6 +14,7 @@ const EditMetadataSectionBlock = (props) => { properties, metadata, onChangeField, + errors, } = props; const schema = useSelector((state) => state?.schema?.schema || {}); let metadata_element = {}; @@ -59,6 +60,7 @@ const EditMetadataSectionBlock = (props) => { }} key={metadata_id} block={block} + error={errors?.[metadata_id]} /> ) ); diff --git a/src/less/public.less b/src/less/public.less index 086c096..5965b5c 100644 --- a/src/less/public.less +++ b/src/less/public.less @@ -9,3 +9,9 @@ label.metadata.block { font-weight: bold; } + +.block.metadata-section { + .form-error-label { + border: none !important; + } +}