From 976602c75d2dfdb2210c63c702f7f03d9ae4e859 Mon Sep 17 00:00:00 2001 From: illfixit <66363651+illfixit@users.noreply.github.com> Date: Tue, 30 Jul 2024 16:19:42 +0200 Subject: [PATCH] feat: case insensitive search --- .../asset-page/asset-page/asset-page.component.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/app/routes/connector-ui/asset-page/asset-page/asset-page.component.ts b/src/app/routes/connector-ui/asset-page/asset-page/asset-page.component.ts index 116920020..93f9a99f0 100644 --- a/src/app/routes/connector-ui/asset-page/asset-page/asset-page.component.ts +++ b/src/app/routes/connector-ui/asset-page/asset-page/asset-page.component.ts @@ -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, }),