mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
XYChart: Fix data filter change bug (#80849)
* XYChart: Fix data filter change bug * If no xAxis set, populate from dims
This commit is contained in:
parent
65104a7efa
commit
91e747d8ab
@ -65,6 +65,9 @@ export const AutoEditor = ({ value, onChange, context }: StandardEditorProps<XYD
|
||||
}
|
||||
}
|
||||
}
|
||||
if (!v.xAxis) {
|
||||
v.xAxis = { label: xName, value: xName };
|
||||
}
|
||||
}
|
||||
|
||||
return v;
|
||||
@ -88,6 +91,7 @@ export const AutoEditor = ({ value, onChange, context }: StandardEditorProps<XYD
|
||||
onChange({
|
||||
...value,
|
||||
frame: v?.value!,
|
||||
x: undefined,
|
||||
});
|
||||
}}
|
||||
/>
|
||||
|
Loading…
Reference in New Issue
Block a user