File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed
components/QueryEditor/BucketAggregationsEditor/state Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ import {
1717} from './actions' ;
1818
1919export const createReducer =
20- ( defaultTimeField = "default timefield " ) =>
20+ ( defaultTimeField = "" ) =>
2121 ( state : ElasticsearchQuery [ 'bucketAggs' ] , action : Action ) : ElasticsearchQuery [ 'bucketAggs' ] => {
2222 if ( addBucketAggregation . match ( action ) ) {
2323 const newAgg : Terms = {
Original file line number Diff line number Diff line change @@ -113,7 +113,12 @@ export class QuickwitDataSource
113113 } ;
114114 }
115115 const backendCheck = from ( this . callHealthCheck ( ) ) . pipe (
116- mergeMap ( ( res ) => of ( res ) )
116+ mergeMap ( ( res ) => {
117+ return of ( {
118+ status : res . status . toLowerCase ( ) ,
119+ message : res . message
120+ } )
121+ } )
117122 )
118123
119124 return lastValueFrom ( backendCheck )
You can’t perform that action at this time.
0 commit comments