Skip to content

Commit

Permalink
get the data where it belongs
Browse files Browse the repository at this point in the history
  • Loading branch information
XavierM committed Mar 5, 2021
1 parent 8434439 commit 0f0378c
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -379,10 +379,11 @@ export const UserActionTree = React.memo(
return comments;
}

const ruleId = comment?.rule?.id ?? manualAlertsData[alertId]?.rule?.id?.[0] ?? '';
const ruleId =
comment?.rule?.id ?? manualAlertsData[alertId]?.signal?.rule?.id?.[0] ?? '';
const ruleName =
comment?.rule?.name ??
manualAlertsData[alertId]?.rule?.name?.[0] ??
manualAlertsData[alertId]?.signal?.rule?.name?.[0] ??
i18n.UNKNOWN_RULE;

return [
Expand Down

0 comments on commit 0f0378c

Please sign in to comment.