fix calls

This commit is contained in:
Logan
2026-04-26 00:04:32 -04:00
parent 317f9d2a9d
commit 64232279ca
+1 -1
View File
@@ -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();