From 8bb6e70be3c7199a0503aca302b4b32317520db3 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(-) diff --git a/server/models/server/plugin.ts b/server/models/server/plugin.ts index 82387af6a..80c8a6be5 100644 --- a/server/models/server/plugin.ts +++ b/server/models/server/plugin.ts @@ -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 -- cgit v1.2.3