1
0
Fork 0

Fix 4106: default boolean plugin setting for frontend

This commit is contained in:
John Livingston 2021-05-18 20:21:03 +02:00 committed by Chocobozzz
parent 78c5e31049
commit fa263eeff7
No known key found for this signature in database
GPG key ID: 583A612D890159BE

View file

@ -283,7 +283,7 @@ export class PluginModel extends Model<Partial<AttributesOnly<PluginModel>>> {
for (const r of registeredSettings) {
if (r.private !== false) continue
result[r.name] = settings[r.name] || r.default || null
result[r.name] = settings[r.name] ?? r.default ?? null
}
return result