diff --git a/CHANGELOG.md b/CHANGELOG.md index 5bd1004..0038a3d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,11 +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). -### [2.0.10](https://github.com/eea/volto-industry-theme/compare/2.0.9...2.0.10) - 6 October 2022 +### [2.0.11](https://github.com/eea/volto-industry-theme/compare/2.0.10...2.0.11) - 24 October 2022 -#### :rocket: New Features +#### :hammer_and_wrench: Others -- feat: Apply siteName & facilityName filters [Miu Razvan - [`ce2a3be`](https://github.com/eea/volto-industry-theme/commit/ce2a3be2f260cf78a01ed22b229a09acdbdd2445)] +- look for facilityNames in concatenated string [Claudia Ifrim - [`f20fd45`](https://github.com/eea/volto-industry-theme/commit/f20fd4511cb7d2d87ad2d072a6896463eb449c33)] +### [2.0.10](https://github.com/eea/volto-industry-theme/compare/2.0.9...2.0.10) - 6 October 2022 #### :hammer_and_wrench: Others diff --git a/package.json b/package.json index 1dd5683..f246710 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@eeacms/volto-industry-theme", - "version": "2.0.10", + "version": "2.0.11", "description": "@eeacms/volto-industry-theme: Volto add-on", "main": "src/index.js", "author": "European Environment Agency: IDM2 A-Team", diff --git a/src/components/manage/Blocks/IndustryMap/index.js b/src/components/manage/Blocks/IndustryMap/index.js index 3631e2c..4c22b9d 100644 --- a/src/components/manage/Blocks/IndustryMap/index.js +++ b/src/components/manage/Blocks/IndustryMap/index.js @@ -332,7 +332,7 @@ export const getWhereStatement = (data) => { } if (search?.type === 'facility' && search?.text) { - where[filter++] = [`facilityNames LIKE '${search.text}%'`]; + where[filter++] = [`facilityNames LIKE '%${search.text}%'`]; } return where