Skip to content

Commit

Permalink
[#192] Add isUpdated to segment POST
Browse files Browse the repository at this point in the history
  • Loading branch information
wayangalihpratama committed Jan 5, 2024
1 parent 7bfa65f commit 1ff87b3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ const IncomeDriverDashboard = ({
scenarioDataTmp
);
const isUpdated = isBinningDataUpdated || isScenarioDataUpdated;
console.info(isUpdated);

// Save
api
.post(`visualization?updated=${isUpdated}`, payloads)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ const IncomeDriverDataEntry = ({
currentCaseId,
commodityList
);
apiCalls.push(api.post("/segment", postPayloads));
apiCalls.push(api.post(`/segment?updated=${isUpdated}`, postPayloads));
}
if (putFormValues.length) {
const putPayloads = generateSegmentPayloads(
Expand Down

0 comments on commit 1ff87b3

Please # to comment.