浏览代码

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

Ryan McKinley 6 年之前
父节点
当前提交
c98c5c3c8e
共有 1 个文件被更改,包括 1 次插入1 次删除
  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,
     });
   };