Browse Source

SingleStat2: save options to defaults not override (#18666)

Ryan McKinley 6 năm trước cách đây
mục cha
commit
c98c5c3c8e
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      public/app/plugins/panel/singlestat2/SingleStatEditor.tsx

+ 1 - 1
public/app/plugins/panel/singlestat2/SingleStatEditor.tsx

@@ -49,7 +49,7 @@ export class SingleStatEditor extends PureComponent<PanelEditorProps<SingleStatO
   onDefaultsChange = (field: FieldConfig) => {
     this.onDisplayOptionsChanged({
       ...this.props.options.fieldOptions,
-      override: field,
+      defaults: field,
     });
   };