Skip to content

Commit

Permalink
Don't leave the reason empty if it's not indexed
Browse files Browse the repository at this point in the history
Co-authored-by: mgiota <giota85@gmail.com>
  • Loading branch information
afgomez and mgiota authored Jul 28, 2021
1 parent 29480f7 commit 246d857
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import { ALERT_REASON } from '@kbn/rule-data-utils';
import { ObservabilityRuleTypeFormatter } from '../../../../observability/public';

export const formatReason: ObservabilityRuleTypeFormatter = ({ fields }) => {
const reason = fields[ALERT_REASON] ?? '';
const reason = fields[ALERT_REASON] ?? '-';
const link = '/app/metrics/inventory'; // FIXME? Not sure if we need to do something with this link

return {
Expand Down

0 comments on commit 246d857

Please sign in to comment.