From 1fcad48a2ad37b6920cf411f1de3bb0a1328b453 Mon Sep 17 00:00:00 2001 From: vargburz Date: Thu, 9 Jun 2022 13:29:59 +0300 Subject: [PATCH] linter --- src/components/editors/UseMetricEditor.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;