Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions src/init/features/dataconnect/sdk.ts
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,12 @@ export async function chooseApp(): Promise<App[]> {
const pickedApps = await checkbox<App>({
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.");
Expand Down
Loading