mirror of
https://github.com/casdoor/casdoor.git
synced 2025-05-23 02:35:49 +08:00
Fix tag field in user list page
This commit is contained in:
parent
ec53616dc8
commit
ffe2330238
@ -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("|");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user