Fix the "existing project" user flow

This commit is contained in:
Frank Noirot
2025-01-10 16:11:15 -05:00
parent 83e72dafa3
commit af702ae1b2

View File

@ -135,12 +135,11 @@ export const projectsCommandBarConfig: StateMachineCommandSetConfig<
isDesktop() && isDesktop() &&
commandsContext.argumentsToSubmit.method === 'existingProject', commandsContext.argumentsToSubmit.method === 'existingProject',
skip: true, skip: true,
options: [], options: (_, context) =>
optionsFromContext: (context) => context?.projects.map((p) => ({
context.projects.map((p) => ({
name: p.name!, name: p.name!,
value: p.name!, value: p.name!,
})), })) || [],
}, },
name: { name: {
inputType: 'string', inputType: 'string',