Fix 4106: default boolean plugin setting for frontend

pull/4048/head
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
1 changed files with 1 additions and 1 deletions

View File

@ -283,7 +283,7 @@ export class PluginModel extends Model<Partial<AttributesOnly<PluginModel>>> {
for (const r of registeredSettings) { for (const r of registeredSettings) {
if (r.private !== false) continue 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 return result