Skip to content

Commit e8895b5

Browse files
Merge branch 'dh2-beta-release' into dh2-i18n-rc1
2 parents 8677828 + 527e592 commit e8895b5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/utils/templates.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ export async function templatePathForSchemaURI(schemaURI) {
2525
// for now, this is just the manifest
2626
for (let i = 0; i < template_manifest.children.length; i++) {
2727
const template = template_manifest.children[i];
28-
if (typeof template.children !== 'undefined' && template.children.length > 0 && template.children.filter(c => c.name.includes("schema.json"))) {
28+
if (typeof template.children !== 'undefined' && template.children.length > 0 && template.children.some(c => c.name.includes("schema.json"))) {
2929
const schema = await importSchema(template.name);
3030
if (schema.id === schemaURI) {
3131
const templatePath = `${template.path.split('/').slice(-1)}/${schemaURI

0 commit comments

Comments
 (0)