Skip to content

Commit

Permalink
feat: ability to change the context type on subtasks
Browse files Browse the repository at this point in the history
fix #612
  • Loading branch information
cenk1cenk2 committed Jan 3, 2022
1 parent 2e5c077 commit 7dccdfc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/listr.ts
Original file line number Diff line number Diff line change
Expand Up @@ -114,8 +114,8 @@ export class Listr<Ctx = ListrContext, Renderer extends ListrRendererValue = Lis

// create a new context
this.ctx = {
...this.options?.ctx ?? {},
...context
...context ?? ({} as Ctx),
...this.options?.ctx ?? {}
}

// check if the items are enabled
Expand Down

0 comments on commit 7dccdfc

Please sign in to comment.