Skip to content

Commit

Permalink
Merge pull request #40 from eea/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
GhitaB committed May 14, 2024
2 parents a8e3002 + c5df194 commit 327a0c1
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 4 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@ 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).

### [0.1.17](https://github.com/eea/volto-insitu-policy/compare/0.1.16...0.1.17) - 14 May 2024

#### :hammer_and_wrench: Others

- Refs #268585 - Replace field serializer by service in order to fix bug on edit. [GhitaB - [`4f73e8d`](https://github.com/eea/volto-insitu-policy/commit/4f73e8d5e35a22512192819f3cc3bdb3f033b2fb)]
### [0.1.16](https://github.com/eea/volto-insitu-policy/compare/0.1.15...0.1.16) - 10 May 2024

#### :hammer_and_wrench: Others
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@eeacms/volto-insitu-policy",
"version": "0.1.16",
"version": "0.1.17",
"description": "@eeacms/volto-insitu-policy: Volto add-on",
"main": "src/index.js",
"author": "European Environment Agency: IDM2 A-Team",
Expand All @@ -27,10 +27,10 @@
"@eeacms/volto-listing-block": "*"
},
"devDependencies": {
"cypress": "13.1.0",
"@cypress/code-coverage": "^3.10.0",
"@plone/scripts": "*",
"babel-plugin-transform-class-properties": "^6.24.1",
"cypress": "13.1.0",
"cypress-fail-fast": "^5.0.1",
"husky": "^8.0.3",
"lint-staged": "^14.0.1",
Expand Down
8 changes: 6 additions & 2 deletions src/components/theme/Widgets/DataProviderListWidget.jsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
import { useSelector } from 'react-redux';

function DataProviderListWidget(props) {
const { value } = props;
// const { value } = props;
const content = useSelector((state) => state.content);
const data_providers = content.data?.['@components']?.data_providers_details;

/*
Example of data providers list:
Expand All @@ -23,7 +27,7 @@ function DataProviderListWidget(props) {
<div className="data-providers">
<h4>Data providers</h4>
<ul>
{value.map((item, index) => (
{data_providers.map((item, index) => (
<li key={index}>
<a href={item.link}>{item.name}</a>
</li>
Expand Down

0 comments on commit 327a0c1

Please sign in to comment.