You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@inlong.apache.org by le...@apache.org on 2022/07/15 02:56:06 UTC

[inlong] branch master updated: [INLONG-5059][Dashboard] Unable to get total number (#5060)

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

leezng pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/inlong.git


The following commit(s) were added to refs/heads/master by this push:
     new c5afe3e08 [INLONG-5059][Dashboard] Unable to get total number (#5060)
c5afe3e08 is described below

commit c5afe3e088a4f36c9da5d448e7915e2bbf64d475
Author: Daniel <le...@outlook.com>
AuthorDate: Fri Jul 15 10:56:02 2022 +0800

    [INLONG-5059][Dashboard] Unable to get total number (#5060)
---
 .../src/components/ConsumeHelper/BusinessSelect/MyBusinessModal.tsx     | 2 +-
 inlong-dashboard/src/pages/ConsumeDashboard/index.tsx                   | 2 +-
 inlong-dashboard/src/pages/UserManagement/index.tsx                     | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/inlong-dashboard/src/components/ConsumeHelper/BusinessSelect/MyBusinessModal.tsx b/inlong-dashboard/src/components/ConsumeHelper/BusinessSelect/MyBusinessModal.tsx
index f01e7b020..45a02ad8a 100644
--- a/inlong-dashboard/src/components/ConsumeHelper/BusinessSelect/MyBusinessModal.tsx
+++ b/inlong-dashboard/src/components/ConsumeHelper/BusinessSelect/MyBusinessModal.tsx
@@ -124,7 +124,7 @@ const Comp: React.FC<MyAccessModalProps> = ({ ...modalProps }) => {
   const pagination = {
     pageSize: 10,
     current: options.pageNum,
-    total: data?.totalSize,
+    total: data?.total,
   };
 
   return (
diff --git a/inlong-dashboard/src/pages/ConsumeDashboard/index.tsx b/inlong-dashboard/src/pages/ConsumeDashboard/index.tsx
index a74fd9eb0..436eb423d 100644
--- a/inlong-dashboard/src/pages/ConsumeDashboard/index.tsx
+++ b/inlong-dashboard/src/pages/ConsumeDashboard/index.tsx
@@ -85,7 +85,7 @@ const Comp: React.FC = () => {
   const pagination = {
     pageSize: options.pageSize,
     current: options.pageNum,
-    total: data?.totalSize,
+    total: data?.total,
   };
 
   const dashboardList = dashCardList.map(item => ({
diff --git a/inlong-dashboard/src/pages/UserManagement/index.tsx b/inlong-dashboard/src/pages/UserManagement/index.tsx
index b3cea41d0..c10ab17e6 100644
--- a/inlong-dashboard/src/pages/UserManagement/index.tsx
+++ b/inlong-dashboard/src/pages/UserManagement/index.tsx
@@ -94,7 +94,7 @@ const Comp: React.FC = () => {
   const pagination = {
     pageSize: options.pageSize,
     current: options.pageNum,
-    total: data?.totalSize,
+    total: data?.total,
   };
 
   return (