Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(app): Allow missing includes #1156

Merged
merged 1 commit into from
Jul 25, 2022

Conversation

jayvdb
Copy link
Contributor

@jayvdb jayvdb commented Jul 25, 2022

No description provided.

@@ -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 && conf.settings.extras?.features?.includes("metrics.setup.community.templates")) || (conf.settings.extras?.features === true) || (conf.settings.extras?.default) || (extras) || (sandbox)) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's kind of weird syntax, but this should work.

Suggested change
if ((conf.settings.extras?.features?.includes && 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)) {

@lowlighter lowlighter merged commit a7c19d3 into lowlighter:master Jul 25, 2022
@lowlighter
Copy link
Owner

Thanks a lot for your contribution 馃挄 !

@github-actions github-actions bot locked and limited conversation to collaborators Aug 9, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants