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') {
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 };