From 647371854c2bee8ddef27ea39b86b9cd67304b03 Mon Sep 17 00:00:00 2001 From: Sofie Johansen Date: Wed, 26 Jun 2024 08:21:01 +0200 Subject: [PATCH 1/8] Fixed the orange info card flashing when it was not supposed to --- src/pages/_app.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pages/_app.tsx b/src/pages/_app.tsx index 2485394..7a81d9d 100644 --- a/src/pages/_app.tsx +++ b/src/pages/_app.tsx @@ -9,7 +9,7 @@ import clientContext from "../context/clientContext"; function MyApp({ Component, pageProps }: AppProps) { const [client, setClient] = useState(undefined!); - const [loading, setLoading] = useState(false); + const [loading, setLoading] = useState(true); useEffect(() => { setLoading(true); @@ -33,7 +33,7 @@ function MyApp({ Component, pageProps }: AppProps) {
- +
From e533f4f67c523c29ce921bcf1b6bef95e7798cad Mon Sep 17 00:00:00 2001 From: Helle Figenschou Date: Wed, 26 Jun 2024 08:41:03 +0200 Subject: [PATCH 2/8] Removed orange not found message for patient when patient is in fact found. --- src/pages/patient/[id].tsx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/pages/patient/[id].tsx b/src/pages/patient/[id].tsx index 89f3754..7f0d421 100644 --- a/src/pages/patient/[id].tsx +++ b/src/pages/patient/[id].tsx @@ -12,7 +12,7 @@ const Patient: React.FC = () => { const [patient, setPatient] = useState(); const [documents, setDocuments] = useState(); const [conditions, setConditions] = useState(); - const [loading, setLoading] = useState(false); + const [loading, setLoading] = useState(true); const [appointments, setAppointments] = useState(); const [encounters, setEncounters] = useState(); @@ -198,7 +198,6 @@ if(patient && !loading && documents && appointments && encounters){ return (
- Date: Wed, 26 Jun 2024 08:47:13 +0200 Subject: [PATCH 3/8] Avoid undefined document bug --- src/pages/documents/[id].tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/documents/[id].tsx b/src/pages/documents/[id].tsx index 63bb9fb..941aa86 100644 --- a/src/pages/documents/[id].tsx +++ b/src/pages/documents/[id].tsx @@ -129,7 +129,7 @@ const Documents: React.FC = () => { } - {loading == false && currentDocumentID && !documentLoadError && + {loading == false && currentDocumentID && !documentLoadError && document &&