Fix default base parts values for web instance

This commit is contained in:
lowlighter
2020-12-07 18:16:24 +01:00
parent 0eaaedda6e
commit d2e96e5bb1

View File

@@ -29,7 +29,7 @@
if (("base" in q)&&(!q.base))
conf.settings.plugins.base.parts.map(part => !(`base.${part}` in q) ? q[`base.${part}`] = false : false)
for (const part of conf.settings.plugins.base.parts)
data.base[part] = !!q[`base.${part}`]
data.base[part] = !!(q[`base.${part}`] ?? true)
//Placeholder
if (login === "placeholder")