This is an automated email from the ASF dual-hosted git repository.

lizhimins pushed a commit to branch rocketmq-studio
in repository https://gitbox.apache.org/repos/asf/rocketmq-dashboard.git


The following commit(s) were added to refs/heads/rocketmq-studio by this push:
     new 0ef5e2d0 fix(ui): normalize ACL version to a string for filtering and 
coloring (#1259)
0ef5e2d0 is described below

commit 0ef5e2d0d19c88f588023d06f9a361e469c1cda6
Author: 0 <[email protected]>
AuthorDate: Mon Aug 10 14:27:14 2026 +0800

    fix(ui): normalize ACL version to a string for filtering and coloring 
(#1259)
---
 web/src/pages/instance/acl.tsx | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/web/src/pages/instance/acl.tsx b/web/src/pages/instance/acl.tsx
index 374320c0..186ceba2 100644
--- a/web/src/pages/instance/acl.tsx
+++ b/web/src/pages/instance/acl.tsx
@@ -70,7 +70,9 @@ const normalizeRule = (rule: AclRule): AclRule => ({
   actions: rule.actions ?? [],
   decision: rule.decision ?? '',
   scope: rule.scope ?? '',
-  aclVersion: rule.aclVersion ?? '2.0',
+  // Normalize to a string so version filters and tag coloring work whether 
the backend
+  // returns a number (2.0) or a string ("2.0").
+  aclVersion: String(rule.aclVersion ?? '2.0'),
   createdAt: rule.createdAt ?? null,
 });
 

Reply via email to