mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Ensure that the Dashboard column sort order should be remembered when the refresh button is clicked. Fixes #7339
This commit is contained in:
committed by
Akshay Joshi
parent
38f642d361
commit
a0c85431dc
@@ -229,8 +229,10 @@ export default function PgTable({ columns, data, isSelectRow, caveTable=true, ..
|
||||
const rowHeights = React.useRef({});
|
||||
|
||||
// Reset Search value on tab changes.
|
||||
|
||||
React.useEffect(()=>{
|
||||
setSearchVal('');
|
||||
setSearchVal(prevState => (prevState));
|
||||
setGlobalFilter(searchVal || undefined);
|
||||
rowHeights.current = {};
|
||||
tableRef.current?.resetAfterIndex(0);
|
||||
}, [data]);
|
||||
|
||||
Reference in New Issue
Block a user