Skip to content

Commit

Permalink
Revert changes to output
Browse files Browse the repository at this point in the history
  • Loading branch information
ethriel3695 committed May 20, 2024
1 parent fa5a818 commit 8e9bafa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions node-src/lib/tasks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ export const setOutput = (output: ValueFn) => (ctx: Context, task: Task) => {
export const transitionTo =
(stateFn: (ctx: Context) => Task, last = false) =>
(ctx: Context, task: Task) => {
const { title, output = '' } = stateFn(ctx);
setTitle(title, last ? output : '')(ctx, task);
const { title, output } = stateFn(ctx);
setTitle(title, last ? output : undefined)(ctx, task);
if (!last && output) setOutput(output)(ctx, task);
};

Expand Down

0 comments on commit 8e9bafa

Please sign in to comment.