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

@ -1,6 +1,7 @@
import PctDegOption from 'shared/components/workbench/inputs/design-option-pct-deg'
import CountOption from 'shared/components/workbench/inputs/design-option-count'
import ListOption from 'shared/components/workbench/inputs/design-option-list'
import Popout from 'shared/components/popout'
export const Tmp = props => <p>not yet</p>
@ -9,6 +10,6 @@ export const inputs = {
count: CountOption,
deg: props => (<PctDegOption {...props} type='deg' />),
list: ListOption,
mm: (<p>Mm options are not supported. Please report this.</p>),
mm: () => <Popout fixme compact>Mm options are deprecated. Please report this</Popout>,
constant: Tmp,
}

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 = () => {