fix: the search for comments by username yields empty results (#4481)

#### What type of PR is this?

/kind bug
/area console
/milestone 2.9.x

#### What this PR does / why we need it:

Console 评论列表中,使用用户名查询时携带 kind

#### How to test it?

在 Console 端评论列表,选中右上角评论者,进行选择。

#### Which issue(s) this PR fixes:

Fixes #4465 

#### Does this PR introduce a user-facing change?
```release-note
解决评论列表根据评论者条件筛选时为空的问题
```
pull/4484/head
Takagi 2023-08-25 14:32:11 +08:00 committed by GitHub
parent 42ef7265c7
commit ec0187d8aa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -95,6 +95,8 @@ const {
sort: [selectedSort.value].filter(Boolean) as string[],
keyword: keyword.value,
ownerName: selectedUser.value,
// TODO: email users are not supported at the moment.
ownerKind: selectedUser.value ? "User" : undefined,
});
total.value = data.total;