From f8e9b4dfb3b4883d0f5306b44a740839018ea77e Mon Sep 17 00:00:00 2001 From: Mikhail Mikheev Date: Wed, 26 Jun 2019 15:41:46 +0400 Subject: [PATCH] revert stepper component changes to fix safe creation test --- src/components/Stepper/index.jsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/Stepper/index.jsx b/src/components/Stepper/index.jsx index 5d074c9e..7d3de182 100644 --- a/src/components/Stepper/index.jsx +++ b/src/components/Stepper/index.jsx @@ -57,7 +57,7 @@ class GnoStepper extends React.PureComponent { this.state = { page: 0, - values: {}, + values: props.initialValues || {}, } } @@ -146,7 +146,7 @@ class GnoStepper extends React.PureComponent { render() { const { - steps, children, classes, disabledWhenValidating = false, testId, initialValues, + steps, children, classes, disabledWhenValidating = false, testId, } = this.props const { page, values } = this.state const activePage = this.getActivePageFrom(children) @@ -155,7 +155,7 @@ class GnoStepper extends React.PureComponent { return ( - + {(submitting: boolean, validating: boolean, ...rest: any) => { const disabled = disabledWhenValidating ? submitting || validating : submitting const controls = (