patient table fixed

This commit is contained in:
2025-07-11 21:22:52 +05:30
parent 8adb57eb96
commit 27dc669aae
8 changed files with 258 additions and 50 deletions

View File

@@ -118,7 +118,7 @@ export default function Dashboard() {
},
onSuccess: (newPatient) => {
setIsAddPatientOpen(false);
queryClient.invalidateQueries({ queryKey: ["/api/patients/"] });
queryClient.invalidateQueries({ queryKey: ["patients"] });
toast({
title: "Success",
description: "Patient added successfully!",

View File

@@ -69,7 +69,7 @@ export default function PatientsPage() {
},
onSuccess: (newPatient) => {
setIsAddPatientOpen(false);
queryClient.invalidateQueries({ queryKey: ["/api/patients/"] });
queryClient.invalidateQueries({ queryKey: ["patients"] });
toast({
title: "Success",
description: "Patient added successfully!",