Co-authored-by: renee-png <262607627+renee-png@users.noreply.github.com>
This commit is contained in:
gpt-engineer-app[bot]
2026-04-18 01:41:55 +00:00
co-authored by renee-png
parent 05550e1191
commit 4ab142e60e
8 changed files with 49 additions and 4 deletions
+2 -1
View File
@@ -53,10 +53,11 @@ function useClientsAndCases(open: boolean) {
if (!open) return;
(async () => {
const [{ data: cs }, { data: ks }] = await Promise.all([
supabase.from("clients").select("id, name").order("name"),
supabase.from("clients").select("id, name").is("archived_at", null).order("name"),
supabase
.from("cases")
.select("id, case_number, title, client_id, default_hourly_rate")
.is("archived_at", null)
.order("case_number", { ascending: false }),
]);
setClients(cs ?? []);