mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
make sure target obj is not destructured so that angular copy of objected can be mutated
This commit is contained in:
parent
3d45b5ba73
commit
c40bfb8eda
@ -541,12 +541,7 @@ export class Explore extends React.PureComponent<ExploreProps, ExploreState> {
|
||||
const { datasource, range } = this.state;
|
||||
const { interval, intervalMs } = getIntervals(range, datasource, this.el.offsetWidth);
|
||||
|
||||
const configuredQueries = [
|
||||
{
|
||||
...queryOptions,
|
||||
...query,
|
||||
},
|
||||
];
|
||||
const configuredQueries = [Object.assign(query, queryOptions)];
|
||||
|
||||
// Clone range for query request
|
||||
// const queryRange: RawTimeRange = { ...range };
|
||||
|
@ -36,7 +36,7 @@ export default class QueryEditor extends PureComponent<QueryEditorProps, any> {
|
||||
target,
|
||||
ctrl: {
|
||||
refresh: () => {
|
||||
this.props.onQueryChange({ refId: initialQuery.refId, ...target }, false);
|
||||
this.props.onQueryChange(target, false);
|
||||
this.props.onExecuteQuery();
|
||||
},
|
||||
events: exploreEvents,
|
||||
|
Loading…
Reference in New Issue
Block a user