ui-kit-ck-consultant 0.5.153 → 0.5.154

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -3789,13 +3789,15 @@ var Switch = /*#__PURE__*/function (_React$Component) {
3789
3789
  var _proto = Switch.prototype;
3790
3790
 
3791
3791
  _proto.componentDidMount = function componentDidMount() {
3792
- this.setState({
3793
- idxActive: this.props.idxActive
3794
- });
3792
+ if (this.props.idxActive !== undefined) {
3793
+ this.setState({
3794
+ idxActive: this.props.idxActive
3795
+ });
3796
+ }
3795
3797
  };
3796
3798
 
3797
3799
  _proto.componentDidUpdate = function componentDidUpdate(prevProps) {
3798
- if (prevProps.idxActive !== this.props.prevProps && this.props.idxActive !== this.state.prevProps) {
3800
+ if (prevProps.idxActive !== undefined && prevProps.idxActive !== this.props.idxActive && this.props.idxActive !== this.state.prevProps) {
3799
3801
  this.setState({
3800
3802
  idxActive: this.props.idxActive
3801
3803
  });