fix(shared): Do no require measurements for toAbs
This commit is contained in:
parent
76630a2f81
commit
a43ba9f498
1 changed files with 2 additions and 1 deletions
|
@ -12,11 +12,12 @@ import {
|
|||
const PctOptionInput = (props) => {
|
||||
const { config, settings, changed } = props
|
||||
const currentOrDefault = changed ? props.current : config.dflt / 100
|
||||
console.log(settings)
|
||||
return (
|
||||
<PctInput {...props}>
|
||||
<div className="flex flex-row justify-around">
|
||||
<span className={changed ? 'text-accent' : 'text-secondary'}>
|
||||
{config.toAbs && settings.measurements
|
||||
{config.toAbs
|
||||
? formatMm(
|
||||
config.toAbs(
|
||||
currentOrDefault,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue