From 167122d58f1402a2152f01c8d2b26bba0ad1ee28 Mon Sep 17 00:00:00 2001 From: Timur Ercan Date: Tue, 24 Jan 2023 19:16:12 +0100 Subject: [PATCH] ux --- apps/web/pages/documents.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/web/pages/documents.tsx b/apps/web/pages/documents.tsx index f1c892cc4..28d440a37 100644 --- a/apps/web/pages/documents.tsx +++ b/apps/web/pages/documents.tsx @@ -21,7 +21,7 @@ const DocumentsPage: NextPageWithLayout = (req, res) => { }, []); const getDocuments = async () => { - setLoading(true); + if (!documents.length) setLoading(true); fetch("/api/documents", { headers: { "Content-Type": "application/json",