Skip to content

Commit

Permalink
Hotifx for: No normalization set selected by default
Browse files Browse the repository at this point in the history
Occured specifically for impact methods with only one normalization set
  • Loading branch information
LeonBein committed Oct 15, 2024
1 parent cb87324 commit b403b10
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions frontend/src/components/Lca/Components/LcaIntegration.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ const LcaIntegration = ({ getData, toasting }) => {
if (impactMethodId) {
const impactMethod = impactMethods.filter(im => im.id == impactMethodId)[0];
setNormalizationSets(impactMethod.nwSets);
setNormalizationSetId(impactMethod.nwSets && impactMethod.nwSets[0]?.id)
}
}, [impactMethodId]);

Expand Down

0 comments on commit b403b10

Please sign in to comment.