Merge pull request #665 from dermotduffy/image-disabled
Fix image button upgrade
This commit is contained in:
+2
-2
@@ -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 };
|
||||
|
||||
Reference in New Issue
Block a user