Skip to content

Commit 479b28f

Browse files
authored
Merge pull request #733 from wickathou/bugfix/bottom-bar-bug-submissions
Bugfix - Disabled introspection and fixed bug on submission form allowing repeated submissions
2 parents a037f85 + 6a3684b commit 479b28f

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

backend/modules/graphql.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,7 @@ module.exports = app => {
8080
const server = new ApolloServer({
8181
schema,
8282
playground: false,
83-
// TODO make instrospection false in production
84-
introspection: true,
83+
introspection: false,
8584
context: ({ req, res }) => ({
8685
req,
8786
res,

frontend/src/components/inputs/BottomBar.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,7 @@ const BottomBar = ({
124124
<Button
125125
color="theme_white"
126126
variant="contained"
127+
disabled={loading}
127128
onClick={onSubmit}
128129
disabled={loading}
129130
>

frontend/src/pages/_dashboard/renderDashboard/participant/project/SubmissionForm.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -298,9 +298,9 @@ const SubmissionForm = props => {
298298
autoHideDuration: 10000,
299299
}),
300300
)
301+
} finally {
302+
actions.setSubmitting(false)
301303
}
302-
303-
actions.setSubmitting(false)
304304
}}
305305
>
306306
{renderForm}

0 commit comments

Comments
 (0)