We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c4d9729 commit 95c03a9Copy full SHA for 95c03a9
1 file changed
x-pack/plugins/rollup/public/extend_index_management/index.ts
@@ -6,6 +6,7 @@
6
*/
7
8
import { i18n } from '@kbn/i18n';
9
+import { Index } from '@kbn/index-management-plugin/common';
10
import { get } from 'lodash';
11
12
const propertyPath = 'isRollupIndex';
@@ -20,8 +21,8 @@ export const rollupToggleExtension = {
20
21
};
22
23
export const rollupBadgeExtension = {
- matchIndex: (index: { isRollupIndex: boolean }) => {
24
- return get(index, propertyPath);
+ matchIndex: (index: Index) => {
25
+ return !!get(index, propertyPath);
26
},
27
label: i18n.translate('xpack.rollupJobs.indexMgmtBadge.rollupLabel', {
28
defaultMessage: 'Rollup',
0 commit comments