From 05f6fb16ca62c22b132072f6f95d15428d67fa6b Mon Sep 17 00:00:00 2001 From: Benjamin F Date: Wed, 17 May 2023 10:52:34 -0700 Subject: [PATCH] fix(workbench): Set a default for optional parameter --- sites/shared/components/workbench/inputs/measurement.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sites/shared/components/workbench/inputs/measurement.mjs b/sites/shared/components/workbench/inputs/measurement.mjs index 1b863c34e05..aedcc17451f 100644 --- a/sites/shared/components/workbench/inputs/measurement.mjs +++ b/sites/shared/components/workbench/inputs/measurement.mjs @@ -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}`)