diff --git a/src/lib/commandBarConfigs/projectsCommandConfig.ts b/src/lib/commandBarConfigs/projectsCommandConfig.ts index 2a1475ae7..26b0b917f 100644 --- a/src/lib/commandBarConfigs/projectsCommandConfig.ts +++ b/src/lib/commandBarConfigs/projectsCommandConfig.ts @@ -73,12 +73,11 @@ export const projectsCommandBarConfig: StateMachineCommandSetConfig< name: { inputType: 'options', required: true, - options: [], - optionsFromContext: (context) => - context.projects.map((p) => ({ + options: (_, context) => + context?.projects.map((p) => ({ name: p.name!, value: p.name!, - })), + })) || [], }, }, }, @@ -90,12 +89,11 @@ export const projectsCommandBarConfig: StateMachineCommandSetConfig< oldName: { inputType: 'options', required: true, - options: [], - optionsFromContext: (context) => - context.projects.map((p) => ({ + options: (_, context) => + context?.projects.map((p) => ({ name: p.name!, value: p.name!, - })), + })) || [], }, newName: { inputType: 'string',