fix(cli): force todo example when convex is selected

This commit is contained in:
Aman Varshney
2025-09-01 23:38:20 +05:30
parent 45119d2d68
commit ab88b7fa68
2 changed files with 11 additions and 7 deletions

View File

@@ -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"];