We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0227d53 commit 527e592Copy full SHA for 527e592
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