Fix tag field in user list page

This commit is contained in:
Gucheng Wang 2023-12-19 21:07:44 +08:00
parent ec53616dc8
commit ffe2330238

View File

@ -325,6 +325,10 @@ class UserListPage extends BaseListPage {
sorter: true, sorter: true,
...this.getColumnSearchProps("tag"), ...this.getColumnSearchProps("tag"),
render: (text, record, index) => { render: (text, record, index) => {
if (this.state.organization?.tags?.length === 0) {
return text;
}
const tagMap = {}; const tagMap = {};
this.state.organization?.tags?.map((tag, index) => { this.state.organization?.tags?.map((tag, index) => {
const tokens = tag.split("|"); const tokens = tag.split("|");