aicam commented on code in PR #3926:
URL: https://github.com/apache/texera/pull/3926#discussion_r2441460425
##########
frontend/src/app/dashboard/component/admin/user/admin-user.component.ts:
##########
@@ -162,7 +162,10 @@ export class AdminUserComponent implements OnInit {
searchByName(): void {
this.nameSearchVisible = false;
- this.listOfDisplayUser = this.userList.filter(user => (user.name ||
"").indexOf(this.nameSearchValue) !== -1);
+ const q = (this.nameSearchValue ?? "").trim().toLowerCase();
+ this.listOfDisplayUser = this.userList.filter(u =>
+ (u.name ?? "").toLowerCase().includes(q)
Review Comment:
Please make sure this functionality I mentioned is supported and add it to
PR title and description
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]