Skip to content
This repository has been archived by the owner on Jan 11, 2023. It is now read-only.

Commit

Permalink
Disabled forward/backward stepping for a single history item (#5619)
Browse files Browse the repository at this point in the history
  • Loading branch information
haoRchen authored and jasonLaster committed Mar 13, 2018
1 parent d6e07e2 commit 39f3a58
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/SecondaryPanes/CommandBar.js
Original file line number Diff line number Diff line change
Expand Up @@ -347,7 +347,7 @@ class CommandBar extends Component<Props> {
const { history, historyPosition, canRewind } = this.props;
const historyLength = history.length;

if (canRewind || !historyLength || !features.replay) {
if (canRewind || !historyLength || historyLength <= 1 || !features.replay) {
return null;
}

Expand All @@ -366,7 +366,7 @@ class CommandBar extends Component<Props> {
const { history, historyPosition, canRewind } = this.props;
const historyLength = history.length;

if (canRewind || !historyLength || !features.replay) {
if (canRewind || !historyLength || historyLength <= 1 || !features.replay) {
return null;
}

Expand Down

0 comments on commit 39f3a58

Please sign in to comment.