@@ -133,12 +135,18 @@ const Documents: React.FC = () => {
}
- {!currentDocumentID && !loading && !documentLoadError &&
+ {!currentDocumentID && !loading && !documentLoadError && documents.total > 0 &&
}
+ {!currentDocumentID && !loading && !documentLoadError && documents.total == 0 &&
+
+
+ There is no documents here
+
+
}
{loading == false && currentDocumentID && documentLoadError &&
@@ -158,14 +166,48 @@ const Documents: React.FC = () => {
)
+ }
+ else{
+ return (
+
+
+
+
+ There is no documents here
+
+
+
)
+ }
}
else{
- return <>>
+ return (
+
+
+
+
+ Could not get any documents assosiated with the patient
+
+
+
)
}
-
+
}
else if (!loading){
- return
Could not find documents related to {patientId}
+ return(
+
+
+
+
+ Could not find documents related to {patientId}
+
+
+
)
}
else if (loading){
return (
From 5bc18182b936c9e7a847f351a571f3d766387bfa Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?J=C3=B8rgen=20Kiil=20Olsen?=
Date: Wed, 26 Jun 2024 09:41:06 +0200
Subject: [PATCH 4/4] Removed a coment
---
src/pages/appointments/[id].tsx | 1 -
1 file changed, 1 deletion(-)
diff --git a/src/pages/appointments/[id].tsx b/src/pages/appointments/[id].tsx
index 79c5a07..9543beb 100644
--- a/src/pages/appointments/[id].tsx
+++ b/src/pages/appointments/[id].tsx
@@ -80,7 +80,6 @@ if (!patient) {
);
}
-// console.log(appointments?.total)
if(patient && appointments && encounters){