File tree 2 files changed +7
-2
lines changed
components/QueryEditor/BucketAggregationsEditor/state
2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ import {
17
17
} from './actions' ;
18
18
19
19
export const createReducer =
20
- ( defaultTimeField = "default timefield " ) =>
20
+ ( defaultTimeField = "" ) =>
21
21
( state : ElasticsearchQuery [ 'bucketAggs' ] , action : Action ) : ElasticsearchQuery [ 'bucketAggs' ] => {
22
22
if ( addBucketAggregation . match ( action ) ) {
23
23
const newAgg : Terms = {
Original file line number Diff line number Diff line change @@ -113,7 +113,12 @@ export class QuickwitDataSource
113
113
} ;
114
114
}
115
115
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
+ } )
117
122
)
118
123
119
124
return lastValueFrom ( backendCheck )
You can’t perform that action at this time.
0 commit comments