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') {
|
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 };
|
||||||
|
|||||||
Reference in New Issue
Block a user