fix(client): ensure validation works during watch (#38936)
This commit is contained in:
committed by
GitHub
parent
3567813c51
commit
d233cb35a3
@@ -14,10 +14,10 @@ const arrToString = arr =>
|
||||
|
||||
exports.localeChallengesRootDir = getChallengesDirForLang(locale);
|
||||
|
||||
exports.replaceChallengeNode = async function replaceChallengeNode(
|
||||
fullFilePath
|
||||
) {
|
||||
return prepareChallenge(await createChallenge(fullFilePath));
|
||||
exports.replaceChallengeNode = locale => {
|
||||
return async function replaceChallengeNode(fullFilePath) {
|
||||
return prepareChallenge(await createChallenge(fullFilePath, null, locale));
|
||||
};
|
||||
};
|
||||
|
||||
exports.buildChallenges = async function buildChallenges() {
|
||||
|
Reference in New Issue
Block a user