fix(tools): fix insert-erms helper script (#42903)
* fix(tools): fix insert-erms helper script * only throw if undefined erms * revert last two commits * fix insertErms the correct waypull/42961/head
parent
32dbe23f5e
commit
cefb973c14
|
@ -27,7 +27,10 @@ function getStepTemplate({
|
||||||
}) {
|
}) {
|
||||||
const seedTexts = Object.values(challengeSeeds)
|
const seedTexts = Object.values(challengeSeeds)
|
||||||
.map(({ contents, ext, editableRegionBoundaries }) => {
|
.map(({ contents, ext, editableRegionBoundaries }) => {
|
||||||
const fullContents = insertErms(contents, editableRegionBoundaries);
|
let fullContents = contents;
|
||||||
|
if (editableRegionBoundaries.length >= 2) {
|
||||||
|
fullContents = insertErms(contents, editableRegionBoundaries);
|
||||||
|
}
|
||||||
return getCodeBlock(ext, fullContents);
|
return getCodeBlock(ext, fullContents);
|
||||||
})
|
})
|
||||||
.join('\n');
|
.join('\n');
|
||||||
|
|
Loading…
Reference in New Issue