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.
@@ -3786,13 +3786,15 @@ var Switch = /*#__PURE__*/function (_React$Component) {
3786
3786
  var _proto = Switch.prototype;
3787
3787
 
3788
3788
  _proto.componentDidMount = function componentDidMount() {
3789
- this.setState({
3790
- idxActive: this.props.idxActive
3791
- });
3789
+ if (this.props.idxActive !== undefined) {
3790
+ this.setState({
3791
+ idxActive: this.props.idxActive
3792
+ });
3793
+ }
3792
3794
  };
3793
3795
 
3794
3796
  _proto.componentDidUpdate = function componentDidUpdate(prevProps) {
3795
- if (prevProps.idxActive !== this.props.prevProps && this.props.idxActive !== this.state.prevProps) {
3797
+ if (prevProps.idxActive !== undefined && prevProps.idxActive !== this.props.idxActive && this.props.idxActive !== this.state.prevProps) {
3796
3798
  this.setState({
3797
3799
  idxActive: this.props.idxActive
3798
3800
  });