From fa64b6f632ebe36b05676e135c65d360a4e09f67 Mon Sep 17 00:00:00 2001
From: ks129 <45097959+ks129@users.noreply.github.com>
Date: Wed, 16 Dec 2020 21:48:23 +0200
Subject: Fetch forms only once in discovery

---
 src/pages/LandingPage.tsx | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'src/pages/LandingPage.tsx')

diff --git a/src/pages/LandingPage.tsx b/src/pages/LandingPage.tsx
index e50d76f..1320c14 100644
--- a/src/pages/LandingPage.tsx
+++ b/src/pages/LandingPage.tsx
@@ -17,7 +17,7 @@ function LandingPage() {
       setForms(await getForms());
     }
     fetchForms();
-  });
+  }, []);
 
   if (!forms) {
     return <Loading/>;
-- 
cgit v1.2.3

