Skip to content

Commit

Permalink
fix health status
Browse files Browse the repository at this point in the history
  • Loading branch information
walterra committed Apr 9, 2024
1 parent 21cb5f8 commit 55ec826
Showing 1 changed file with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ import { stringHash } from '@kbn/ml-string-hash';
import { isDefined } from '@kbn/ml-is-defined';

import { FormattedMessage } from '@kbn/i18n-react';

import { mapEsHealthStatus2TransformHealthStatus } from '../../../../../../common/constants';

import { useEnabledFeatures } from '../../../../serverless_context';
import { isTransformListRowWithStats } from '../../../../common/transform_list';
import type { TransformHealthAlertRule } from '../../../../../../common/types/alerting';
Expand Down Expand Up @@ -154,7 +157,11 @@ export const ExpandedRow: FC<Props> = ({ item, onAlertEdit, transformsStatsLoadi
if (item.stats.health !== undefined) {
stateItems.push({
title: 'health',
description: <TransformHealthColoredDot healthStatus={item.stats.health.status} />,
description: (
<TransformHealthColoredDot
healthStatus={mapEsHealthStatus2TransformHealthStatus(item.stats.health.status)}
/>
),
});
}

Expand Down

0 comments on commit 55ec826

Please sign in to comment.