From fa263eeff79b1d80789a87a5af45ebe4c303025d Mon Sep 17 00:00:00 2001 From: John Livingston Date: Tue, 18 May 2021 20:21:03 +0200 Subject: Fix 4106: default boolean plugin setting for frontend --- server/models/server/plugin.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'server') diff --git a/server/models/server/plugin.ts b/server/models/server/plugin.ts index 8bb9649da..a8de64dd4 100644 --- a/server/models/server/plugin.ts +++ b/server/models/server/plugin.ts @@ -283,7 +283,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 -- cgit v1.2.3