diff --git a/src/components/editors/UseMetricEditor.tsx b/src/components/editors/UseMetricEditor.tsx index d91d1cc..183b635 100644 --- a/src/components/editors/UseMetricEditor.tsx +++ b/src/components/editors/UseMetricEditor.tsx @@ -21,7 +21,7 @@ export function UseMetricEditor({ onChange, value, context }: StandardEditorProp let config = value; const onFieldChange = (field: keyof UseMetricConfig, value: any) => { - if(_.isNil(config)) { + if (_.isNil(config)) { config = {}; } config[field] = value;