mirror of
https://github.com/FranP-code/create-better-t-stack.git
synced 2025-10-12 23:52:15 +00:00
fix(cli): force todo example when convex is selected
This commit is contained in:
@@ -14,10 +14,14 @@ export async function getExamplesChoice(
|
||||
backend?: Backend,
|
||||
api?: API,
|
||||
): Promise<Examples[]> {
|
||||
if (examples !== undefined) return examples;
|
||||
|
||||
if (api === "none") {
|
||||
if (backend === "convex") {
|
||||
return ["todo"];
|
||||
}
|
||||
return [];
|
||||
}
|
||||
if (examples !== undefined) return examples;
|
||||
|
||||
if (backend === "convex") {
|
||||
return ["todo"];
|
||||
|
||||
Reference in New Issue
Block a user