Skip to content

Commit

Permalink
Merge branch 'dh2-beta-release' into dh2-i18n-rc1
Browse files Browse the repository at this point in the history
  • Loading branch information
kennethbruskiewicz committed Dec 16, 2024
2 parents 8677828 + 527e592 commit e8895b5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/utils/templates.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export async function templatePathForSchemaURI(schemaURI) {
// for now, this is just the manifest
for (let i = 0; i < template_manifest.children.length; i++) {
const template = template_manifest.children[i];
if (typeof template.children !== 'undefined' && template.children.length > 0 && template.children.filter(c => c.name.includes("schema.json"))) {
if (typeof template.children !== 'undefined' && template.children.length > 0 && template.children.some(c => c.name.includes("schema.json"))) {
const schema = await importSchema(template.name);
if (schema.id === schemaURI) {
const templatePath = `${template.path.split('/').slice(-1)}/${schemaURI
Expand Down

0 comments on commit e8895b5

Please sign in to comment.