File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed
x-pack/plugins/lens/public/indexpattern_datasource Expand file tree Collapse file tree 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({
557557 } }
558558 currentIndexPatternId = { currentIndexPatternId }
559559 existenceFetchFailed = { existenceFetchFailed }
560+ existFieldsInIndex = { ! ! allFields . length }
560561 />
561562 </ EuiFlexItem >
562563 </ EuiFlexGroup >
Original file line number Diff line number Diff line change @@ -52,6 +52,7 @@ export function FieldList({
5252 hasSyncedExistingFields,
5353 filter,
5454 currentIndexPatternId,
55+ existFieldsInIndex,
5556} : {
5657 exists : ( field : IndexPatternField ) => boolean ;
5758 fieldGroups : FieldGroups ;
@@ -63,6 +64,7 @@ export function FieldList({
6364 typeFilter : string [ ] ;
6465 } ;
6566 currentIndexPatternId : string ;
67+ existFieldsInIndex : boolean ;
6668} ) {
6769 const [ pageSize , setPageSize ] = useState ( PAGINATION_SIZE ) ;
6870 const [ scrollContainer , setScrollContainer ] = useState < Element | undefined > ( undefined ) ;
@@ -180,7 +182,7 @@ export function FieldList({
180182 isAffectedByGlobalFilter = { fieldGroup . isAffectedByGlobalFilter }
181183 isAffectedByFieldFilter = { isAffectedByFieldFilter }
182184 isAffectedByTimerange = { fieldGroup . isAffectedByTimeFilter }
183- existFieldsInIndex = { ! ! fieldGroup . fieldCount }
185+ existFieldsInIndex = { ! ! existFieldsInIndex }
184186 />
185187 }
186188 />
You can’t perform that action at this time.
0 commit comments