react-paginate
Advanced tools
Comparing version 1.0.3 to 1.0.4
@@ -166,3 +166,3 @@ 'use strict'; | ||
value: function componentWillReceiveProps(nextProps) { | ||
if (this.props.forceSelected !== nextProps.forceSelected) { | ||
if (typeof nextProps.forceSelected !== 'undefined' && this.props.forceSelected !== nextProps.forceSelected) { | ||
this.setState({ selected: nextProps.forceSelected }); | ||
@@ -169,0 +169,0 @@ } |
{ | ||
"name": "react-paginate", | ||
"version": "1.0.3", | ||
"version": "1.0.4", | ||
"description": "A ReactJS component that creates a pagination.", | ||
@@ -5,0 +5,0 @@ "main": "./dist/index.js", |
@@ -64,3 +64,3 @@ 'use strict'; | ||
componentWillReceiveProps(nextProps) { | ||
if (this.props.forceSelected !== nextProps.forceSelected) { | ||
if (typeof(nextProps.forceSelected) !== 'undefined' && this.props.forceSelected !== nextProps.forceSelected) { | ||
this.setState({selected: nextProps.forceSelected}); | ||
@@ -67,0 +67,0 @@ } |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
243862