From 6a3684b2d28136e8d746777a34c5cf11c9f09be4 Mon Sep 17 00:00:00 2001 From: Javier Date: Sat, 11 Nov 2023 00:45:08 +0200 Subject: [PATCH] Disabled instrospection Fixed issue with project submissions allowing multiple submissions if clicking fast enough Added .finally to async call sequence on submissionForm to set isSubmitting to false when all promises settle onSubmit --- backend/modules/graphql.js | 3 +-- frontend/src/components/inputs/BottomBar.js | 1 + .../renderDashboard/participant/project/SubmissionForm.js | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/backend/modules/graphql.js b/backend/modules/graphql.js index 7455cea87..b384c0ffb 100644 --- a/backend/modules/graphql.js +++ b/backend/modules/graphql.js @@ -80,8 +80,7 @@ module.exports = app => { const server = new ApolloServer({ schema, playground: false, - // TODO make instrospection false in production - introspection: true, + introspection: false, context: ({ req, res }) => ({ req, res, diff --git a/frontend/src/components/inputs/BottomBar.js b/frontend/src/components/inputs/BottomBar.js index c650d46cf..44960a2ff 100644 --- a/frontend/src/components/inputs/BottomBar.js +++ b/frontend/src/components/inputs/BottomBar.js @@ -97,6 +97,7 @@ const BottomBar = ({