Skip to content

Commit

Permalink
remove not needed parent clings
Browse files Browse the repository at this point in the history
  • Loading branch information
nevio18324 committed Dec 23, 2024
1 parent 2ae9186 commit 0bfa74b
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,15 +52,15 @@ export class KeyresultDialogComponent {
saveKeyResult(openNewDialog = false) {
const value = this.keyResultForm.value;
const keyResult = this.isMetricKeyResult()
? ({
? {
...value,
objective: this.data.objective
} as KeyResultMetricDTO)
: ({
} as KeyResultMetricDTO
: {
...value,
objective: this.data.objective,
id: this.data.keyResult?.id
} as KeyResultOrdinalDTO);
} as KeyResultOrdinalDTO;
keyResult.id = this.data.keyResult?.id;
keyResult.version = this.data.keyResult?.version;
keyResult.actionList = (keyResult.actionList ?? []).filter((action: Action) => action.action !== '');
Expand Down

0 comments on commit 0bfa74b

Please sign in to comment.