aboutsummaryrefslogtreecommitdiffstats
path: root/src/pages/LandingPage.tsx
diff options
context:
space:
mode:
authorGravatar ks129 <[email protected]>2020-12-16 21:48:23 +0200
committerGravatar GitHub <[email protected]>2020-12-16 21:48:23 +0200
commitfa64b6f632ebe36b05676e135c65d360a4e09f67 (patch)
tree901b41d82f5b444cfb44e5e1de8c505658523a16 /src/pages/LandingPage.tsx
parentMerge pull request #44 from python-discord/bugfix/webpack-config (diff)
Fetch forms only once in discovery
Diffstat (limited to 'src/pages/LandingPage.tsx')
-rw-r--r--src/pages/LandingPage.tsx2
1 files changed, 1 insertions, 1 deletions
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/>;