Skip to content

Commit b5e874e

Browse files
committed
fix: forgot to label plans correctly in the cancel command
1 parent 80fe570 commit b5e874e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: packages/cli/src/commands/import/cancel.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,8 @@ export default class ImportCancelCommand extends AuthCommand {
6464
}
6565

6666
async #selectPlans (plans: ImportPlan[]): Promise<ImportPlan[]> {
67-
const choices: prompts.Choice[] = plans.map(plan => ({
68-
title: `Plan #1 from ${new Date(plan.createdAt)}`,
67+
const choices: prompts.Choice[] = plans.map((plan, index) => ({
68+
title: `Plan #${index + 1} from ${new Date(plan.createdAt)}`,
6969
value: plan.id,
7070
description: `ID: ${plan.id}`,
7171
}))

0 commit comments

Comments
 (0)