Skip to content

Commit

Permalink
chore: update comment for current.js
Browse files Browse the repository at this point in the history
  • Loading branch information
martinkrulltott committed Feb 26, 2024
1 parent 5393850 commit 76a938b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/modules/current.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,12 @@ export const getDefaultFromUi = (current, ui) => {
...getOptionsFromUi(adaptedUi),
}

// delete program and programStage if output type is TE as the api doesn't accept these props at all
if (output.outputType === OUTPUT_TYPE_TRACKED_ENTITY) {
// delete program and programStage if output type is TE as the api doesn't accept these props at all
delete output.program
delete output.programStage
} else {
// delete trackedEntityType if output type is not TE
delete output.trackedEntityType
}

Expand Down

0 comments on commit 76a938b

Please sign in to comment.