We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 8677828 + 527e592 commit e8895b5Copy full SHA for e8895b5
lib/utils/templates.js
@@ -25,7 +25,7 @@ export async function templatePathForSchemaURI(schemaURI) {
25
// for now, this is just the manifest
26
for (let i = 0; i < template_manifest.children.length; i++) {
27
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"))) {
+ if (typeof template.children !== 'undefined' && template.children.length > 0 && template.children.some(c => c.name.includes("schema.json"))) {
29
const schema = await importSchema(template.name);
30
if (schema.id === schemaURI) {
31
const templatePath = `${template.path.split('/').slice(-1)}/${schemaURI
0 commit comments