Skip to content

Commit

Permalink
fix(app): allow missing setting 'includes'
Browse files Browse the repository at this point in the history
  • Loading branch information
jayvdb committed Jul 25, 2022
1 parent 7ac66b8 commit 8b0ce32
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/app/metrics/setup.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ export default async function({log = true, sandbox = false, community = {}, extr
logger("metrics/setup > load package.json > success")

//Load community templates
if ((conf.settings.extras?.features?.includes("metrics.setup.community.templates")) || (conf.settings.extras?.features === true) || (conf.settings.extras?.default) || (extras) || (sandbox)) {
if ((conf.settings.extras?.features?.includes?.("metrics.setup.community.templates")) || (conf.settings.extras?.features === true) || (conf.settings.extras?.default) || (extras) || (sandbox)) {
if ((typeof conf.settings.community.templates === "string") && (conf.settings.community.templates.length)) {
logger("metrics/setup > parsing community templates list")
conf.settings.community.templates = [...new Set([...decodeURIComponent(conf.settings.community.templates).split(",").map(v => v.trim().toLocaleLowerCase()).filter(v => v)])]
Expand Down

0 comments on commit 8b0ce32

Please sign in to comment.