Skip to content

Commit

Permalink
[#192] Fix currentValues value when create new case
Browse files Browse the repository at this point in the history
  • Loading branch information
wayangalihpratama committed Jan 10, 2024
1 parent ee43774 commit f0e3fb8
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions frontend/src/pages/cases/components/IncomeDriverDataEntry.js
Original file line number Diff line number Diff line change
Expand Up @@ -232,12 +232,14 @@ const IncomeDriverDataEntry = ({
answers: {},
},
]);
setCurrentValues({
key: "1",
label: "Segment 1",
currentSegmentId: null,
answers: {},
});
setCurrentValues([
{
key: "1",
label: "Segment 1",
currentSegmentId: null,
answers: {},
},
]);
});
});
}, [commodityList, setQuestionGroups, currentCaseId, enableEditCase]);
Expand Down

0 comments on commit f0e3fb8

Please # to comment.