Skip to content

Commit

Permalink
Merge pull request #20 from eea/develop
Browse files Browse the repository at this point in the history
trim white space to match facilityName
  • Loading branch information
razvanMiu authored Oct 26, 2022
2 parents b636396 + becc06b commit 11988c6
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
6 changes: 4 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,13 @@ 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.11](https://github.com/eea/volto-industry-theme/compare/2.0.10...2.0.11) - 24 October 2022
### [2.0.12](https://github.com/eea/volto-industry-theme/compare/2.0.11...2.0.12) - 26 October 2022

#### :hammer_and_wrench: Others

- look for facilityNames in concatenated string [Claudia Ifrim - [`f20fd45`](https://github.com/eea/volto-industry-theme/commit/f20fd4511cb7d2d87ad2d072a6896463eb449c33)]
- Update index.js [Claudia Ifrim - [`1c99ba5`](https://github.com/eea/volto-industry-theme/commit/1c99ba57d3517869ddb9a27ed6576d5cf6106065)]
### [2.0.11](https://github.com/eea/volto-industry-theme/compare/2.0.10...2.0.11) - 25 October 2022

### [2.0.10](https://github.com/eea/volto-industry-theme/compare/2.0.9...2.0.10) - 6 October 2022

#### :hammer_and_wrench: Others
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@eeacms/volto-industry-theme",
"version": "2.0.11",
"version": "2.0.12",
"description": "@eeacms/volto-industry-theme: Volto add-on",
"main": "src/index.js",
"author": "European Environment Agency: IDM2 A-Team",
Expand Down
2 changes: 1 addition & 1 deletion src/components/manage/Blocks/IndustryMap/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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.trim()}%'`];
}

return where
Expand Down

0 comments on commit 11988c6

Please sign in to comment.