1
0
Fork 0

fix(lab): Handle mm options gracefully

This commit is contained in:
Joost De Cock 2022-07-03 12:56:10 +02:00
parent 503e553c15
commit 8b3cc99ebb
2 changed files with 3 additions and 4 deletions

View file

@ -13,9 +13,7 @@ const Option = props => {
const Value = values[type]
const hide = opt.hide && opt.hide(props.draft.settings);
if (hide) {
return <Li></Li>
}
if (hide) return <Li></Li>
if (type === 'bool') {
const toggleBoolean = () => {