fix: remove eslint-disable for uninstalled react-hooks plugin; remove unused clientMap (GRO-27)
Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
@@ -444,7 +444,7 @@ export function GroupBookingPage() {
|
||||
|
||||
useEffect(() => {
|
||||
loadAll();
|
||||
}, [clientFilter]); // eslint-disable-line react-hooks/exhaustive-deps
|
||||
}, [clientFilter]); // re-fetch when client filter changes
|
||||
|
||||
async function cancelGroup(groupId: string) {
|
||||
if (!confirm("Cancel all appointments in this group visit?")) return;
|
||||
@@ -452,8 +452,6 @@ export function GroupBookingPage() {
|
||||
if (res.ok) loadAll();
|
||||
}
|
||||
|
||||
const clientMap = new Map(clients.map((c) => [c.id, c.name]));
|
||||
|
||||
if (loading && groups.length === 0) return <p style={{ padding: "1rem" }}>Loading…</p>;
|
||||
if (error) return <p style={{ padding: "1rem", color: "#dc2626" }}>Error: {error}</p>;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user