Skip to content

Commit

Permalink
Revert "[TOS-1044] fix: Prerequisite Step number displayed as NaN (#346
Browse files Browse the repository at this point in the history
…)"

This reverts commit e67ced0.
  • Loading branch information
Raksha-testsigma committed Mar 17, 2023
1 parent 6f6d963 commit 8cd0926
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 @@ -149,7 +149,7 @@ export class ActionStepResultDetailsComponent extends BaseComponent implements O
}

get preRequisiteStep() {
return this.preRequestStep?.testStep?.stepDisplayNumber ? this.preRequestStep?.testStep?.stepDisplayNumber : (<number>this.preRequestStep?.stepDetail?.order_id)
return this.preRequestStep?.testStep?.stepDisplayNumber ? this.preRequestStep?.testStep?.stepDisplayNumber : (<number>this.preRequestStep?.stepDetail?.order_id + 1)
}

fetchElementByName(elementName, addonElement?) {
Expand Down
2 changes: 1 addition & 1 deletion ui/src/app/models/step-details.model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export class StepDetails extends Base implements Deserializable {
public conditionType: TestStepConditionType;
@serializable
public action: String;
@serializable(alias('position', custom(() => SKIP, (v) => v)))
@serializable
public order_id: Number;
@serializable
public priority: TestStepPriority;
Expand Down

0 comments on commit 8cd0926

Please sign in to comment.