Skip to content

Commit 95c03a9

Browse files
committed
[Index Management] Fix rollup badge types
1 parent c4d9729 commit 95c03a9

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

  • x-pack/plugins/rollup/public/extend_index_management

x-pack/plugins/rollup/public/extend_index_management/index.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
*/
77

88
import { i18n } from '@kbn/i18n';
9+
import { Index } from '@kbn/index-management-plugin/common';
910
import { get } from 'lodash';
1011

1112
const propertyPath = 'isRollupIndex';
@@ -20,8 +21,8 @@ export const rollupToggleExtension = {
2021
};
2122

2223
export const rollupBadgeExtension = {
23-
matchIndex: (index: { isRollupIndex: boolean }) => {
24-
return get(index, propertyPath);
24+
matchIndex: (index: Index) => {
25+
return !!get(index, propertyPath);
2526
},
2627
label: i18n.translate('xpack.rollupJobs.indexMgmtBadge.rollupLabel', {
2728
defaultMessage: 'Rollup',

0 commit comments

Comments
 (0)