File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed
src/dashboard/Data/Browser Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -132,6 +132,7 @@ export default class DataBrowser extends React.Component {
132
132
this . setShowRowNumber = this . setShowRowNumber . bind ( this ) ;
133
133
this . handleCellClick = this . handleCellClick . bind ( this ) ;
134
134
this . saveOrderTimeout = null ;
135
+ this . aggregationPanelRef = React . createRef ( ) ;
135
136
}
136
137
137
138
componentWillReceiveProps ( props ) {
@@ -734,6 +735,9 @@ export default class DataBrowser extends React.Component {
734
735
const { prefetchCache } = this . state ;
735
736
const { prefetchStale } = this . getPrefetchSettings ( ) ;
736
737
const cached = prefetchCache [ objectId ] ;
738
+ if ( this . aggregationPanelRef . current ) {
739
+ this . aggregationPanelRef . current . scrollTop = 0 ;
740
+ }
737
741
if (
738
742
cached &&
739
743
( ! prefetchStale || ( Date . now ( ) - cached . timestamp ) / 1000 < prefetchStale )
@@ -902,7 +906,10 @@ export default class DataBrowser extends React.Component {
902
906
resizeHandles = { [ 'w' ] }
903
907
className = { styles . resizablePanel }
904
908
>
905
- < div className = { styles . aggregationPanelContainer } >
909
+ < div
910
+ className = { styles . aggregationPanelContainer }
911
+ ref = { this . aggregationPanelRef }
912
+ >
906
913
< AggregationPanel
907
914
data = { this . props . AggregationPanelData }
908
915
isLoadingCloudFunction = { this . props . isLoadingCloudFunction }
You can’t perform that action at this time.
0 commit comments