From cc7fd2cd5801dd68afa8020999091d773b355ce1 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?J=C3=B8rgen=20Kiil=20Olsen?=
Date: Wed, 26 Jun 2024 09:00:58 +0200
Subject: [PATCH] Added so the document loads when it is not selected
---
src/pages/documents/[id].tsx | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/pages/documents/[id].tsx b/src/pages/documents/[id].tsx
index 941aa86..c12d121 100644
--- a/src/pages/documents/[id].tsx
+++ b/src/pages/documents/[id].tsx
@@ -125,7 +125,7 @@ const Documents: React.FC = () => {
- {loading &&
+ {(loading || !document) && currentDocumentID && !documentLoadError &&
}
@@ -155,6 +155,7 @@ const Documents: React.FC = () => {
}
+
)
}