From 64232279ca646ca52e49eb6a1bc3d33e94d43c06 Mon Sep 17 00:00:00 2001 From: Logan Date: Sun, 26 Apr 2026 00:04:32 -0400 Subject: [PATCH] fix calls --- drb-frontend/lib/useCalls.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drb-frontend/lib/useCalls.ts b/drb-frontend/lib/useCalls.ts index 808f742..c192f23 100644 --- a/drb-frontend/lib/useCalls.ts +++ b/drb-frontend/lib/useCalls.ts @@ -63,7 +63,7 @@ export function useCallsByIncident(incidentId: string | null) { const toISO = (v: any): string | null => v?.toDate?.()?.toISOString?.() ?? (typeof v === "string" ? v : null); - const q = query(collection(db, "calls"), where("incident_id", "==", incidentId)); + const q = query(collection(db, "calls"), where("incident_ids", "array-contains", incidentId)); unsubFirestore = onSnapshot(q, (snap) => { const docs = snap.docs.map((d) => { const data = d.data();