Merge pull request #665 from dermotduffy/image-disabled

Fix image button upgrade
This commit is contained in:
Dermot Duffy
2022-06-11 12:44:22 -07:00
committed by GitHub
+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 };