fix(client): get translationPending in video chals (#41567)

This commit is contained in:
Oliver Eyton-Williams
2021-03-25 06:54:17 +01:00
committed by GitHub
parent b0f6c4e7a1
commit 6b63da3996
2 changed files with 2 additions and 2 deletions

View File

@ -63,7 +63,6 @@ const propTypes = {
challengeMeta: PropTypes.object challengeMeta: PropTypes.object
}), }),
t: PropTypes.func.isRequired, t: PropTypes.func.isRequired,
translationPending: PropTypes.bool.isRequired,
updateChallengeMeta: PropTypes.func.isRequired, updateChallengeMeta: PropTypes.func.isRequired,
updateSolutionFormValues: PropTypes.func.isRequired updateSolutionFormValues: PropTypes.func.isRequired
}; };
@ -338,6 +337,7 @@ export const query = graphql`
answers answers
solution solution
} }
translationPending
} }
} }
`; `;

View File

@ -100,7 +100,7 @@ const schema = Joi.object()
template: Joi.string().allow(''), template: Joi.string().allow(''),
time: Joi.string().allow(''), time: Joi.string().allow(''),
title: Joi.string().required(), title: Joi.string().required(),
translationPending: Joi.bool() translationPending: Joi.bool().required()
}) })
.xor('helpCategory', 'isPrivate'); .xor('helpCategory', 'isPrivate');