Skip to content

Commit

Permalink
feat: case insensitive search (#780)
Browse files Browse the repository at this point in the history
  • Loading branch information
illfixit authored Aug 1, 2024
1 parent 72a0c7f commit d0ba369
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ the detailed section referring to by linking pull requests or issues.
#### Patch

- Copyable contact email and subject fields on asset and data offer detail dialogs
- Assets Page search input field is now case insensitive

## [v4.1.0] - 2024-07-24

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,9 @@ export class AssetPageComponent implements OnInit, OnDestroy {
Fetched.map(
(assets): AssetList => ({
filteredAssets: assets.filter((asset) =>
asset.title?.includes(this.searchText),
asset.title
?.toLowerCase()
.includes(this.searchText.toLowerCase()),
),
numTotalAssets: assets.length,
}),
Expand Down

0 comments on commit d0ba369

Please sign in to comment.