Skip to content

Commit

Permalink
Merge pull request #1040 from sreehari-aot/release/5.0.2
Browse files Browse the repository at this point in the history
🐛 : Form Edit window freeze while session refresh.
  • Loading branch information
abhilash-aot authored Dec 7, 2022
2 parents b18df05 + a4deddd commit d5ddd09
Showing 1 changed file with 8 additions and 11 deletions.
19 changes: 8 additions & 11 deletions forms-flow-web/src/components/Form/Stepper.js
Original file line number Diff line number Diff line change
Expand Up @@ -292,13 +292,7 @@ class StepperPage extends PureComponent {
if (previewMode) {
return <Preview handleNext={this.handleNext} />;
} else if (editMode) {
return (
<Edit
handleNext={this.handleNext}
{...this.props}
setPreviewMode={this.setPreviewMode}
/>
);
return <Edit />;
}
return <Create setPreviewMode={this.setPreviewMode} />;
case 1:
Expand Down Expand Up @@ -338,7 +332,7 @@ class StepperPage extends PureComponent {
render() {
// const { process } = this.props;
const steps = this.getSteps();
const {t} = this.props;
const { t } = this.props;
const handleReset = () => {
this.setActiveStep(0);
};
Expand All @@ -349,7 +343,7 @@ class StepperPage extends PureComponent {
{this.props.isAuthenticated ? (
<Link
to={`${this.state.redirectUrl}form`}
title={ t("Back to Form List")}
title={t("Back to Form List")}
>
<i className="fa fa-chevron-left fa-lg m-3" />
</Link>
Expand Down Expand Up @@ -416,7 +410,7 @@ const mapStateToProps = (state) => {
const mapDispatchToProps = (dispatch) => {
return {
getAllProcesses: (tenantKey) => {
const tenantIdIn = MULTITENANCY_ENABLED ? tenantKey : null;
const tenantIdIn = MULTITENANCY_ENABLED ? tenantKey : null;
dispatch(
// eslint-disable-next-line no-unused-vars
fetchAllBpmProcesses(tenantIdIn, (err, res) => {
Expand Down Expand Up @@ -467,4 +461,7 @@ const mapDispatchToProps = (dispatch) => {
};
};

export default connect(mapStateToProps, mapDispatchToProps)(withTranslation()(StepperPage));
export default connect(
mapStateToProps,
mapDispatchToProps
)(withTranslation()(StepperPage));

0 comments on commit d5ddd09

Please sign in to comment.