Skip to content

Commit bcf79ce

Browse files
committed
fix
1 parent db22594 commit bcf79ce

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/dashboard/Data/Browser/DataBrowser.react.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -740,7 +740,7 @@ export default class DataBrowser extends React.Component {
740740
// or with ctrl/meta (excel style - move to the first row)
741741
const prevObjectID = this.state.selectedObjectId;
742742
// Calculate step size based on batch navigation mode
743-
const stepSize = this.state.panelCount > 1 && this.state.batchNavigate ? this.state.panelCount : 1;
743+
const stepSize = this.state.panelCount > 1 && this.state.batchNavigate && this.state.isPanelVisible ? this.state.panelCount : 1;
744744
const newRow = e.ctrlKey || e.metaKey ? 0 : Math.max(this.state.current.row - stepSize, 0);
745745
this.setState({
746746
current: {
@@ -785,7 +785,7 @@ export default class DataBrowser extends React.Component {
785785
// or with ctrl/meta (excel style - move to the last row)
786786
const prevObjectID = this.state.selectedObjectId;
787787
// Calculate step size based on batch navigation mode
788-
const stepSizeDown = this.state.panelCount > 1 && this.state.batchNavigate ? this.state.panelCount : 1;
788+
const stepSizeDown = this.state.panelCount > 1 && this.state.batchNavigate && this.state.isPanelVisible ? this.state.panelCount : 1;
789789
const newRow =
790790
e.ctrlKey || e.metaKey
791791
? this.props.data.length - 1

0 commit comments

Comments
 (0)