fix: settings plans fetch includeInactive=true to show all plans
This commit is contained in:
@@ -406,7 +406,7 @@ function PlansSettings() {
|
||||
queryKey: ["plans"],
|
||||
queryFn: async () => {
|
||||
try {
|
||||
const res = await api.get<Plan[] | { data: Plan[] }>("/api/v1/plans");
|
||||
const res = await api.get<Plan[] | { data: Plan[] }>("/api/v1/plans?includeInactive=true");
|
||||
const d = res.data;
|
||||
return Array.isArray(d) ? d : (d as { data: Plan[] }).data ?? [];
|
||||
} catch {
|
||||
|
||||
Reference in New Issue
Block a user