From ffe233023860146870dbdb68766d09e72f43f3f1 Mon Sep 17 00:00:00 2001 From: Gucheng Wang Date: Tue, 19 Dec 2023 21:07:44 +0800 Subject: [PATCH] Fix tag field in user list page --- web/src/UserListPage.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/web/src/UserListPage.js b/web/src/UserListPage.js index 984751c7e0be..c4f8d308cbf3 100644 --- a/web/src/UserListPage.js +++ b/web/src/UserListPage.js @@ -325,6 +325,10 @@ class UserListPage extends BaseListPage { sorter: true, ...this.getColumnSearchProps("tag"), render: (text, record, index) => { + if (this.state.organization?.tags?.length === 0) { + return text; + } + const tagMap = {}; this.state.organization?.tags?.map((tag, index) => { const tokens = tag.split("|");