Skip to content

Commit

Permalink
Merge pull request #31 from openimis/feature/CM-322
Browse files Browse the repository at this point in the history
CM-322: fixed displaying parameters from calcrule
  • Loading branch information
delcroip authored Sep 22, 2023
2 parents a9a2243 + 19fb611 commit 29ec9ca
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/components/CalculationInput.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ class CalculationInput extends Component {
this.setIsEntityReady();
}

componentDidUpdate(prevProps, prevState, snapshot) {
componentDidUpdate(prevProps, prevState, snapshot) {
if (
prevProps.entity !== this.props.entity ||
prevProps.linkedClassList !== this.props.linkedClassList
Expand Down Expand Up @@ -124,14 +124,12 @@ class CalculationInput extends Component {
) {
refetchCalculationParamsList = true;
}
} else {
isEntityReady = false;
}
});
}
this.setState(
refetchCalculationParamsList
? { isEntityReady, fetchedCalculationParamsList: false }
? { isEntityReady: true, fetchedCalculationParamsList: false }
: { isEntityReady }
);
}
Expand Down

0 comments on commit 29ec9ca

Please sign in to comment.