You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pinot.apache.org by xi...@apache.org on 2021/05/22 10:17:42 UTC
[incubator-pinot] branch master updated: fixed showing all pinot
servers in tenant details (#6934)
This is an automated email from the ASF dual-hosted git repository.
xiangfu pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-pinot.git
The following commit(s) were added to refs/heads/master by this push:
new f15225f fixed showing all pinot servers in tenant details (#6934)
f15225f is described below
commit f15225f9c8abe8d9efa52c31c00f0d7418b368eb
Author: Sanket Shah <sh...@users.noreply.github.com>
AuthorDate: Sat May 22 15:47:26 2021 +0530
fixed showing all pinot servers in tenant details (#6934)
---
pinot-controller/src/main/resources/app/pages/Tenants.tsx | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/pinot-controller/src/main/resources/app/pages/Tenants.tsx b/pinot-controller/src/main/resources/app/pages/Tenants.tsx
index ab3e0de..c91716a 100644
--- a/pinot-controller/src/main/resources/app/pages/Tenants.tsx
+++ b/pinot-controller/src/main/resources/app/pages/Tenants.tsx
@@ -65,7 +65,8 @@ const TenantPage = ({ match }: RouteComponentProps<Props>) => {
const serversData = await PinotMethodUtils.getServerOfTenant(tenantName);
setTableData(tenantData);
setBrokerData(brokersData || []);
- setServerData(serversData || []);
+ let separatedServers = Array.isArray(serversData) ? serversData.map((elm) => [elm]) : [];
+ setServerData(separatedServers || []);
setFetching(false);
};
useEffect(() => {
@@ -132,7 +133,7 @@ const TenantPage = ({ match }: RouteComponentProps<Props>) => {
title="Servers"
data={{
columns: ['Instance Name'],
- records: serverData.length > 0 ? [serverData] : []
+ records: serverData.length > 0 ? serverData : []
}}
isPagination
addLinks
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@pinot.apache.org
For additional commands, e-mail: commits-help@pinot.apache.org