Commit c40bfb8e by Erik Sundell

make sure target obj is not destructured so that angular copy of objected can be mutated

parent 3d45b5ba
......@@ -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,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment