You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pinot.apache.org by ma...@apache.org on 2021/10/22 21:20:21 UTC
[pinot] branch master updated: (fix) Query console doesn't load
(#7618)
This is an automated email from the ASF dual-hosted git repository.
mayanks pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/pinot.git
The following commit(s) were added to refs/heads/master by this push:
new a114cd2 (fix) Query console doesn't load (#7618)
a114cd2 is described below
commit a114cd27d61d5947ed80c6245af428f74b093dee
Author: Sanket Shah <sh...@users.noreply.github.com>
AuthorDate: Sat Oct 23 02:49:58 2021 +0530
(fix) Query console doesn't load (#7618)
---
pinot-controller/src/main/resources/app/components/Table.tsx | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/pinot-controller/src/main/resources/app/components/Table.tsx b/pinot-controller/src/main/resources/app/components/Table.tsx
index 8400d20..2c01ee1 100644
--- a/pinot-controller/src/main/resources/app/components/Table.tsx
+++ b/pinot-controller/src/main/resources/app/components/Table.tsx
@@ -273,7 +273,7 @@ export default function CustomizedTables({
const classes = useStyles();
const [rowsPerPage, setRowsPerPage] = React.useState(noOfRows || 10);
const [page, setPage] = React.useState(0);
-
+
const handleChangeRowsPerPage = (
event: React.ChangeEvent<HTMLInputElement>
) => {
@@ -435,7 +435,7 @@ export default function CustomizedTables({
.slice(page * rowsPerPage, page * rowsPerPage + rowsPerPage)
.map((row, index) => (
<StyledTableRow key={index} hover>
- {Object.values(row).map((cell: string | {value: string, tooltip: string}, idx) =>{
+ {Object.values(row).map((cell: any, idx) =>{
let url = baseURL;
if(regexReplace){
const regex = /\:.*?:/;
@@ -457,7 +457,7 @@ export default function CustomizedTables({
className={isCellClickable ? classes.isCellClickable : (isSticky ? classes.isSticky : '')}
onClick={() => {cellClickCallback && cellClickCallback(cell);}}
>
- {typeof cell === 'object' ?
+ {Object.prototype.toString.call(cell) === '[object Object]' ?
<Tooltip title={cell?.tooltip || ''} placement="top" arrow>{styleCell(cell.value.toString())}</Tooltip>
: styleCell(cell.toString())
}
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@pinot.apache.org
For additional commands, e-mail: commits-help@pinot.apache.org