Skip to content

Commit

Permalink
Fix 4106: default boolean plugin setting for frontend
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnXLivingston authored and Chocobozzz committed May 25, 2021
1 parent d35c81f commit 8bb6e70
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/models/server/plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8bb6e70

Please sign in to comment.