1
0
Fork 0

fix(workbench): Set a default for optional parameter

This commit is contained in:
Benjamin F 2023-05-17 10:52:34 -07:00
parent 25ad29a37e
commit 05f6fb16ca

View file

@ -11,7 +11,7 @@ import { measurementAsMm } from 'shared/utils.mjs'
* m holds the measurement name. It's just so long to type
* measurement and I always have some typo in it because dyslexia.
*/
export const MeasurementInput = ({ m, gist, app, updateMeasurements, focus, optional }) => {
export const MeasurementInput = ({ m, gist, app, updateMeasurements, focus, optional = false }) => {
const { t } = useTranslation(['app', 'measurements'])
const prefix = app.site === 'org' ? '' : 'https://freesewing.org'
const title = t(`measurements:${m}`)