This is an automated email from the ASF dual-hosted git repository.
baoyuan pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/apisix-dashboard.git
The following commit(s) were added to refs/heads/master by this push:
new 470fc941 fix: consumer without plugins causes page crashes (#2437)
470fc941 is described below
commit 470fc941e45cbab67c343d17daf4dcdc12180379
Author: HaiYan <[email protected]>
AuthorDate: Tue Apr 26 11:24:57 2022 +0800
fix: consumer without plugins causes page crashes (#2437)
Co-authored-by: qihaiyan <[email protected]>
---
web/src/pages/Consumer/List.tsx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/web/src/pages/Consumer/List.tsx b/web/src/pages/Consumer/List.tsx
index a0a62cc5..9bb0f0a9 100644
--- a/web/src/pages/Consumer/List.tsx
+++ b/web/src/pages/Consumer/List.tsx
@@ -59,7 +59,7 @@ const Page: React.FC = () => {
title: formatMessage({ id: 'menu.plugin' }),
dataIndex: 'plugins',
hideInSearch: true,
- render: (_, record) => Object.keys(record.plugins).join(','),
+ render: (_, record) => Object.keys(record.plugins || []).join(','),
},
{
title: formatMessage({ id: 'component.global.operation' }),