Skip to content

Commit

Permalink
feat: case insensitive search
Browse files Browse the repository at this point in the history
  • Loading branch information
illfixit committed Jul 30, 2024
1 parent 72a0c7f commit 976602c
Showing 1 changed file with 3 additions and 1 deletion.
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 976602c

Please sign in to comment.