From 6b63da399642497b8c933f4d67ae559ec3a2d3b9 Mon Sep 17 00:00:00 2001 From: Oliver Eyton-Williams Date: Thu, 25 Mar 2021 06:54:17 +0100 Subject: [PATCH] fix(client): get translationPending in video chals (#41567) --- client/src/templates/Challenges/video/Show.js | 2 +- curriculum/schema/challengeSchema.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/client/src/templates/Challenges/video/Show.js b/client/src/templates/Challenges/video/Show.js index 8b71a77a19..81ada307c2 100644 --- a/client/src/templates/Challenges/video/Show.js +++ b/client/src/templates/Challenges/video/Show.js @@ -63,7 +63,6 @@ const propTypes = { challengeMeta: PropTypes.object }), t: PropTypes.func.isRequired, - translationPending: PropTypes.bool.isRequired, updateChallengeMeta: PropTypes.func.isRequired, updateSolutionFormValues: PropTypes.func.isRequired }; @@ -338,6 +337,7 @@ export const query = graphql` answers solution } + translationPending } } `; diff --git a/curriculum/schema/challengeSchema.js b/curriculum/schema/challengeSchema.js index 72e1ff8799..6c468d1caa 100644 --- a/curriculum/schema/challengeSchema.js +++ b/curriculum/schema/challengeSchema.js @@ -100,7 +100,7 @@ const schema = Joi.object() template: Joi.string().allow(''), time: Joi.string().allow(''), title: Joi.string().required(), - translationPending: Joi.bool() + translationPending: Joi.bool().required() }) .xor('helpCategory', 'isPrivate');