0.3.1 UI修复

This commit is contained in:
liaibo
2026-01-18 19:01:31 +08:00
parent 90a38b48cf
commit 8a5b915002
86 changed files with 1160 additions and 2867 deletions
+6 -5
View File
@@ -1,6 +1,6 @@
import type { SupabaseClient } from "@supabase/supabase-js";
type TypedClient = SupabaseClient<any>;
type TypedClient = {
from: (table: string) => any;
};
interface WorkspaceMembershipRow {
workspace_id: string;
@@ -101,8 +101,9 @@ export async function fetchWorkspaceSummaries(
throw new Error(`统计成员数失败:${countError.message}`);
}
(memberCounts ?? []).forEach((item) => {
const workspaceId = item.workspace_id as string;
const countRows = (memberCounts ?? []) as Array<{ workspace_id: string }>;
countRows.forEach((item) => {
const workspaceId = item.workspace_id;
memberCountMap[workspaceId] = (memberCountMap[workspaceId] ?? 0) + 1;
});
}