Skip to content

Commit

Permalink
use some instead of filter
Browse files Browse the repository at this point in the history
  • Loading branch information
kennethbruskiewicz committed Dec 16, 2024
1 parent 0227d53 commit 527e592
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 527e592

Please sign in to comment.