From 8cd092666b004dcad9e308017cea6d693fa1a6ea Mon Sep 17 00:00:00 2001 From: Raksha-testsigma Date: Fri, 17 Mar 2023 18:58:56 +0530 Subject: [PATCH] Revert "[TOS-1044] fix: Prerequisite Step number displayed as NaN (#346)" This reverts commit e67ced0a8399ce084ccb5931ee4f507b28e0d6d6. --- .../webcomponents/action-step-result-details.component.ts | 2 +- ui/src/app/models/step-details.model.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ui/src/app/components/webcomponents/action-step-result-details.component.ts b/ui/src/app/components/webcomponents/action-step-result-details.component.ts index 9c7a886d0..98748c65d 100644 --- a/ui/src/app/components/webcomponents/action-step-result-details.component.ts +++ b/ui/src/app/components/webcomponents/action-step-result-details.component.ts @@ -149,7 +149,7 @@ export class ActionStepResultDetailsComponent extends BaseComponent implements O } get preRequisiteStep() { - return this.preRequestStep?.testStep?.stepDisplayNumber ? this.preRequestStep?.testStep?.stepDisplayNumber : (this.preRequestStep?.stepDetail?.order_id) + return this.preRequestStep?.testStep?.stepDisplayNumber ? this.preRequestStep?.testStep?.stepDisplayNumber : (this.preRequestStep?.stepDetail?.order_id + 1) } fetchElementByName(elementName, addonElement?) { diff --git a/ui/src/app/models/step-details.model.ts b/ui/src/app/models/step-details.model.ts index 6d869ffe2..9304acfaa 100644 --- a/ui/src/app/models/step-details.model.ts +++ b/ui/src/app/models/step-details.model.ts @@ -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;