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 3a51223dd4 [UI] Fixed table columns modal on search in Controller UI
(#16389)
3a51223dd4 is described below
commit 3a51223dd433aa99fec6d396f98f027edb577c86
Author: Shaurya Chaturvedi <[email protected]>
AuthorDate: Mon Jul 21 09:23:54 2025 -0700
[UI] Fixed table columns modal on search in Controller UI (#16389)
---
pinot-controller/src/main/resources/app/components/Table.tsx | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/pinot-controller/src/main/resources/app/components/Table.tsx
b/pinot-controller/src/main/resources/app/components/Table.tsx
index 399fd75072..c6fa7adc52 100644
--- a/pinot-controller/src/main/resources/app/components/Table.tsx
+++ b/pinot-controller/src/main/resources/app/components/Table.tsx
@@ -303,6 +303,8 @@ export default function CustomizedTables({
const [finalData, setFinalData] = React.useState(Utils.tableFormat(data));
React.useEffect( () => {
setInitialData(data);
+ // Reset pagination when data changes
+ setPage(0);
}, [data]);
// We do not use data.isLoading directly in the renderer because there's a
gap between data
// changing and finalData being set. Without this, there's a flicker where
we go from
@@ -368,6 +370,8 @@ export default function CustomizedTables({
// Table.tsx currently doesn't support sorting after filtering. So for
now, we just
// remove the visual indicator of the sorted column until users sort
again.
setColumnClicked('')
+ // Reset pagination to first page when search changes
+ setPage(0);
}, 200);
return () => {
@@ -521,6 +525,8 @@ export default function CustomizedTables({
}
setOrder(!order);
setColumnClicked(column);
+ // Reset pagination when sorting
+ setPage(0);
}}
>
<>
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]