You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by ju...@apache.org on 2021/07/23 08:32:18 UTC

[apisix-dashboard] branch master updated: fix(consumer): fix user undefined when view (#1987)

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

juzhiyuan 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 0b5196f  fix(consumer): fix user undefined when view (#1987)
0b5196f is described below

commit 0b5196f0b444dac8acb5cf60635806f024de6a0a
Author: Baoyuan <ba...@gmail.com>
AuthorDate: Fri Jul 23 16:32:13 2021 +0800

    fix(consumer): fix user undefined when view (#1987)
---
 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 d85bf6b..fea131e 100644
--- a/web/src/pages/Consumer/List.tsx
+++ b/web/src/pages/Consumer/List.tsx
@@ -78,7 +78,7 @@ const Page: React.FC = () => {
             {formatMessage({ id: 'component.global.edit' })}
           </Button>
           <Button type="primary" style={{ marginRight: 10 }} onClick={() => {
-            setId(record.id);
+            setId(record.username);
             setRawData(omit(record, DELETE_FIELDS));
             setVisible(true);
             setEditorMode('update');