Fix image button upgrade.

This commit is contained in:
Dermot Duffy
2022-06-11 12:41:11 -07:00
parent c3c6464011
commit 1b18f25744
+2 -2
View File
@@ -503,8 +503,8 @@ const menuButtonBooleanToObject = function (
if (typeof value === 'object') { if (typeof value === 'object') {
return undefined; return undefined;
} }
// If it's not a boolean, or it's just true, remove it. // If it's not a boolean remove it.
if (typeof value !== 'boolean' || value) { if (typeof value !== 'boolean') {
return null; return null;
} }
return { enabled: value }; return { enabled: value };