Skip to content

Commit 9e7fd63

Browse files
committed
fixed initial rendering bug
1 parent 0a7839b commit 9e7fd63

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/app/containers/MainContainer.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ class MainContainer extends Component {
4141
}
4242
case 'initialConnectSnapshot': {
4343
const { snapshots, mode } = payload;
44-
const snapshotIndex = payload.length - 1;
44+
const snapshotIndex = snapshots.length - 1;
4545
this.setState({ snapshots, snapshotIndex, mode });
4646
break;
4747
}

0 commit comments

Comments
 (0)