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 d35c81fa1c
commit 8bb6e70be3
1 changed files with 1 additions and 1 deletions

View File

@ -284,7 +284,7 @@ export class PluginModel extends Model {
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