Skip to content

Commit

Permalink
[#298] Fix graph comparing different scenarios showing same value
Browse files Browse the repository at this point in the history
  • Loading branch information
wayangalihpratama committed Mar 7, 2024
1 parent 6e84d90 commit d315870
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions frontend/src/pages/cases/components/Scenario.js
Original file line number Diff line number Diff line change
Expand Up @@ -738,7 +738,7 @@ const Scenario = ({
: scenarioData.filter((sd) => scenarioKeys.includes(sd.key));

let data = filterScenarioData.flatMap((sd) => {
const segments = scenarioValues.map((sv) => {
const segments = sd.scenarioValues.map((sv) => {
return {
...sv,
scenarioSegmentKey: `${sd.key}-${sv.segmentId}`,
Expand Down Expand Up @@ -769,7 +769,6 @@ const Scenario = ({
dashboardData,
scenarioData,
scenarioItem,
scenarioValues,
selectedScenarioSegmentChart,
activeScenario,
]);
Expand Down

0 comments on commit d315870

Please # to comment.