Commit bf212b8 1 parent 6490428 commit bf212b8 Copy full SHA for bf212b8
File tree 2 files changed +4
-1
lines changed
x-pack/plugins/lens/public/indexpattern_datasource
2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -557,6 +557,7 @@ export const InnerIndexPatternDataPanel = function InnerIndexPatternDataPanel({
557
557
} }
558
558
currentIndexPatternId = { currentIndexPatternId }
559
559
existenceFetchFailed = { existenceFetchFailed }
560
+ existFieldsInIndex = { ! ! allFields . length }
560
561
/>
561
562
</ EuiFlexItem >
562
563
</ EuiFlexGroup >
Original file line number Diff line number Diff line change @@ -52,6 +52,7 @@ export function FieldList({
52
52
hasSyncedExistingFields,
53
53
filter,
54
54
currentIndexPatternId,
55
+ existFieldsInIndex,
55
56
} : {
56
57
exists : ( field : IndexPatternField ) => boolean ;
57
58
fieldGroups : FieldGroups ;
@@ -63,6 +64,7 @@ export function FieldList({
63
64
typeFilter : string [ ] ;
64
65
} ;
65
66
currentIndexPatternId : string ;
67
+ existFieldsInIndex : boolean ;
66
68
} ) {
67
69
const [ pageSize , setPageSize ] = useState ( PAGINATION_SIZE ) ;
68
70
const [ scrollContainer , setScrollContainer ] = useState < Element | undefined > ( undefined ) ;
@@ -180,7 +182,7 @@ export function FieldList({
180
182
isAffectedByGlobalFilter = { fieldGroup . isAffectedByGlobalFilter }
181
183
isAffectedByFieldFilter = { isAffectedByFieldFilter }
182
184
isAffectedByTimerange = { fieldGroup . isAffectedByTimeFilter }
183
- existFieldsInIndex = { ! ! fieldGroup . fieldCount }
185
+ existFieldsInIndex = { ! ! existFieldsInIndex }
184
186
/>
185
187
}
186
188
/>
You can’t perform that action at this time.
0 commit comments