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 +6 -4
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +6 -4
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.modern.js
CHANGED
@@ -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.
|
3790
|
-
|
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.
|
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
|
});
|