From 1b18f25744919737d0f6a2c47b8a2148d71710a8 Mon Sep 17 00:00:00 2001 From: Dermot Duffy Date: Sat, 11 Jun 2022 12:41:11 -0700 Subject: [PATCH] Fix image button upgrade. --- src/config-mgmt.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/config-mgmt.ts b/src/config-mgmt.ts index a4d2b2f7..71fd3f52 100644 --- a/src/config-mgmt.ts +++ b/src/config-mgmt.ts @@ -503,8 +503,8 @@ const menuButtonBooleanToObject = function ( if (typeof value === 'object') { return undefined; } - // If it's not a boolean, or it's just true, remove it. - if (typeof value !== 'boolean' || value) { + // If it's not a boolean remove it. + if (typeof value !== 'boolean') { return null; } return { enabled: value };