diff --git a/src/init/features/dataconnect/sdk.ts b/src/init/features/dataconnect/sdk.ts index 873aaed0e2b..5eba5e07aaf 100644 --- a/src/init/features/dataconnect/sdk.ts +++ b/src/init/features/dataconnect/sdk.ts @@ -148,6 +148,12 @@ export async function chooseApp(): Promise { const pickedApps = await checkbox({ message: "Which apps do you want to set up Data Connect SDKs in?", choices, + validate: (choices) => { + if (choices.length === 0) { + return "Please choose at least one app."; + } + return true; + }, }); if (!pickedApps || !pickedApps.length) { throw new FirebaseError("Command Aborted. Please choose at least one app.");