Prevent the initialIndex from being less than 0 (#5501)
This commit is contained in:
parent
65a14f309b
commit
4489906698
1 changed files with 1 additions and 1 deletions
|
|
@ -37,7 +37,7 @@ function mapStateToProps() {
|
|||
return {
|
||||
deepLinkURL: state.views.root.deepLinkURL,
|
||||
postIds: ids,
|
||||
initialIndex,
|
||||
initialIndex: Math.max(initialIndex, 0),
|
||||
serverURL: getCurrentUrl(state),
|
||||
siteURL: getConfig(state)?.SiteURL,
|
||||
theme: getTheme(state),
|
||||
|
|
|
|||
Loading…
Reference in a new issue