Skip to content

Commit

Permalink
fix: include the whole report field object in the set report field call
Browse files Browse the repository at this point in the history
  • Loading branch information
allroundexperts committed Jan 30, 2024
1 parent a761eb2 commit 0c9939a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libs/actions/Report.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1593,7 +1593,7 @@ function updateReportField(reportID: string, reportField: PolicyReportField, pre

const parameters = {
reportID,
reportFields: JSON.stringify({[reportField.fieldID]: {fieldID: reportField.fieldID, value: reportField.value, type: reportField.type, name: reportField.name}}),
reportFields: JSON.stringify({[reportField.fieldID]: reportField}),
};

API.write(WRITE_COMMANDS.SET_REPORT_FIELD, parameters, {optimisticData, failureData, successData});
Expand Down

0 comments on commit 0c9939a

Please sign in to comment.