This is an automated email from the ASF dual-hosted git repository.
jackie 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 36e7418787 fix explain plan render, which is going to be multiple
lined (#10208)
36e7418787 is described below
commit 36e741878715fffbd51ef918036642f46b16fd0c
Author: Rong Rong <[email protected]>
AuthorDate: Tue Jan 31 15:37:18 2023 -0800
fix explain plan render, which is going to be multiple lined (#10208)
---
pinot-controller/src/main/resources/app/components/Table.tsx | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/pinot-controller/src/main/resources/app/components/Table.tsx
b/pinot-controller/src/main/resources/app/components/Table.tsx
index acb7171493..8985d320c4 100644
--- a/pinot-controller/src/main/resources/app/components/Table.tsx
+++ b/pinot-controller/src/main/resources/app/components/Table.tsx
@@ -281,7 +281,7 @@ export default function CustomizedTables({
accordionToggleObject,
tooltipData
}: Props) {
- // Separate the initial and final data into two separte state variables.
+ // Separate the initial and final data into two separated state variables.
// This way we can filter and sort the data without affecting the original
data.
// If the component receives new data, we can simply set the new data to the
initial data,
// and the filters and sorts will be applied to the new data.
@@ -394,6 +394,9 @@ export default function CustomizedTables({
/>
);
}
+ if (str.search('\n') !== -1) {
+ return (<pre>{str.toString()}</pre>);
+ }
return (<span>{str.toString()}</span>);
};
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]