fix(editor): proper length check for history when going back in editor (#3960)
This commit is contained in:
parent
09b6668c5e
commit
7ee9f2f188
@ -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')}`);
|
||||
|
Loading…
x
Reference in New Issue
Block a user