File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed
public/app/containers/Explore Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -207,6 +207,7 @@ export class Explore extends React.Component<any, IExploreState> {
207
207
datasourceError : null ,
208
208
datasourceLoading : true ,
209
209
graphResult : null ,
210
+ latency : 0 ,
210
211
logsResult : null ,
211
212
queryErrors : [ ] ,
212
213
queryHints : [ ] ,
@@ -254,7 +255,10 @@ export class Explore extends React.Component<any, IExploreState> {
254
255
this . setState ( {
255
256
graphResult : null ,
256
257
logsResult : null ,
258
+ latency : 0 ,
257
259
queries : ensureQueries ( ) ,
260
+ queryErrors : [ ] ,
261
+ queryHints : [ ] ,
258
262
tableResult : null ,
259
263
} ) ;
260
264
} ;
@@ -276,8 +280,10 @@ export class Explore extends React.Component<any, IExploreState> {
276
280
277
281
onClickSplit = ( ) => {
278
282
const { onChangeSplit } = this . props ;
283
+ const state = { ...this . state } ;
284
+ state . queries = state . queries . map ( ( { edited, ...rest } ) => rest ) ;
279
285
if ( onChangeSplit ) {
280
- onChangeSplit ( true , this . state ) ;
286
+ onChangeSplit ( true , state ) ;
281
287
}
282
288
} ;
283
289
You can’t perform that action at this time.
0 commit comments