aicam commented on code in PR #3926:
URL: https://github.com/apache/texera/pull/3926#discussion_r2441459972
##########
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:
Can you confirm that this change also do substring search? meaning if I
search al, it should also find Ali
--
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]