Skip to content

Commit 862d2a8

Browse files
pshrmnCompuIves
authored andcommitted
Start history at index of 0 (codesandbox#1681)
1 parent 62b49f1 commit 862d2a8

File tree

1 file changed

+1
-1
lines changed
  • packages/common/src/components/Preview

1 file changed

+1
-1
lines changed

packages/common/src/components/Preview/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ class BasePreview extends React.Component<Props, State> {
170170
this.state = {
171171
frameInitialized: false,
172172
history: [],
173-
historyPosition: -1,
173+
historyPosition: 0,
174174
urlInAddressBar: this.serverPreview
175175
? getSSEUrl(props.sandbox.id, props.initialPath)
176176
: frameUrl(props.sandbox.id, props.initialPath || ''),

0 commit comments

Comments
 (0)