Skip to content

Commit

Permalink
UI: Install/Update Component filter to lower case (OpenEMS#2531)
Browse files Browse the repository at this point in the history
since the filter is applied to entry id/alias .toLowerCase() the filter themself should be lower case too.

Co-authored-by: Ulrich Laupp <[email protected]>
  • Loading branch information
2 people authored and fanass-dev committed May 6, 2024
1 parent 0151321 commit 2da8ced
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ export class IndexComponent implements OnInit {

updateFilter(completeFilter: string) {
// take each space-separated string as an individual and-combined filter
let filters = completeFilter.split(' ');
let filters = completeFilter.toLowerCase().split(' ');
let countFilteredEntries = 0;
for (let entry of this.list) {
entry.filteredFactories = entry.factories.filter(entry =>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export class IndexComponent implements OnInit {

updateFilter(completeFilter: string) {
// take each space-separated string as an individual and-combined filter
let filters = completeFilter.split(' ');
let filters = completeFilter.toLowerCase().split(' ');
let countFilteredEntries = 0;
for (let entry of this.list) {
entry.filteredComponents = entry.components.filter(entry =>
Expand Down

0 comments on commit 2da8ced

Please sign in to comment.