Skip to content

Commit

Permalink
fix(editor): proper length check for history when going back in editor (
Browse files Browse the repository at this point in the history
  • Loading branch information
erezrokah authored and vladdu committed Jan 26, 2021
1 parent 274d8c1 commit 256b7d3
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -570,7 +570,7 @@ class EditorToolbar extends React.Component {
<ToolbarContainer>
<ToolbarSectionBackLink
onClick={() => {
if (history.length > 0) {
if (history.length > 2) {
history.goBack();
} else {
history.push(`/collections/${collection.get('name')}`);
Expand Down

0 comments on commit 256b7d3

Please sign in to comment.