From 6bb1d5ee3d690afafb6c28d57bf38cc5c024c94d Mon Sep 17 00:00:00 2001 From: Fabian Iwand Date: Sun, 1 Sep 2024 16:41:44 +0200 Subject: [PATCH] default workspace selection to first value --- src/deploy.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/deploy.ts b/src/deploy.ts index 30c4f61f1..2dcf10db9 100644 --- a/src/deploy.ts +++ b/src/deploy.ts @@ -735,8 +735,7 @@ export async function promptDeployTarget( maxItems: Math.max(process.stdout.rows - 4, 0), options: currentUser.workspaces .map((w) => ({value: w, label: formatUser(w)})) - .sort((a, b) => b.value.role.localeCompare(a.value.role) || a.label.localeCompare(b.label)), - initialValue: currentUser.workspaces[0] // the oldest workspace, maybe? + .sort((a, b) => b.value.role.localeCompare(a.value.role) || a.label.localeCompare(b.label)) }); if (effects.clack.isCancel(chosenWorkspace)) { throw new CliError("User canceled deploy.", {print: false, exitCode: 0});