Skip to content

Commit

Permalink
[Lens] fix wrong message in fields accordion (elastic#78924)
Browse files Browse the repository at this point in the history
  • Loading branch information
mbondyra committed Oct 1, 2020
1 parent 6490428 commit bf212b8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -557,6 +557,7 @@ export const InnerIndexPatternDataPanel = function InnerIndexPatternDataPanel({
}}
currentIndexPatternId={currentIndexPatternId}
existenceFetchFailed={existenceFetchFailed}
existFieldsInIndex={!!allFields.length}
/>
</EuiFlexItem>
</EuiFlexGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ export function FieldList({
hasSyncedExistingFields,
filter,
currentIndexPatternId,
existFieldsInIndex,
}: {
exists: (field: IndexPatternField) => boolean;
fieldGroups: FieldGroups;
Expand All @@ -63,6 +64,7 @@ export function FieldList({
typeFilter: string[];
};
currentIndexPatternId: string;
existFieldsInIndex: boolean;
}) {
const [pageSize, setPageSize] = useState(PAGINATION_SIZE);
const [scrollContainer, setScrollContainer] = useState<Element | undefined>(undefined);
Expand Down Expand Up @@ -180,7 +182,7 @@ export function FieldList({
isAffectedByGlobalFilter={fieldGroup.isAffectedByGlobalFilter}
isAffectedByFieldFilter={isAffectedByFieldFilter}
isAffectedByTimerange={fieldGroup.isAffectedByTimeFilter}
existFieldsInIndex={!!fieldGroup.fieldCount}
existFieldsInIndex={!!existFieldsInIndex}
/>
}
/>
Expand Down

0 comments on commit bf212b8

Please sign in to comment.