Skip to content

Commit

Permalink
methods updated
Browse files Browse the repository at this point in the history
  • Loading branch information
mehmetcetin01140 committed Mar 18, 2024
1 parent 0ae0d99 commit 9f2c062
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/app/components/stepper/stepper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -391,19 +391,19 @@ export class Stepper implements AfterContentInit {
return this.activeStep === index;
}

getStepProp(step, name) {
if (step.header) {
getStepProp(step) {
if (step?.header) {
return step.header;
}

if (step.content) {
if (step?.content) {
return step.content;
}
return undefined;
}

getStepKey(step, index) {
return this.getStepProp(step, 'header') || index;
return this.getStepProp(step) || index;
}

getStepHeaderActionId(index) {
Expand Down

0 comments on commit 9f2c062

Please sign in to comment.