Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -1065,8 +1065,13 @@ export const AlertsCreateEasyPage: FunctionComponent = () => {
{t(
"message.num-metrics",
{
num: option
.metrics
num: option.metrics.filter(
(
metric
) =>
metric.id !==
-1
)
.length,
}
)}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -129,8 +129,8 @@ export const InvestigationStateTracker: FunctionComponent = () => {
enumerationItemSearchParams
),
label: enumerationItem
? `${anomaly.alert.name} (${enumerationItem.name})`
: anomaly.alert.name,
? `${alert?.name} (${enumerationItem.name})`
: alert?.name,
});
} else {
crumbs.push({
Expand All @@ -148,7 +148,7 @@ export const InvestigationStateTracker: FunctionComponent = () => {
});

return crumbs;
}, [anomaly, enumerationItem]);
}, [anomaly, enumerationItem, alert]);

useEffect(() => {
getAnomaly(Number(anomalyId));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,9 @@ export const WelcomeSelectDatasource: FunctionComponent = () => {
<Box
display="flex"
justifyContent="start"
minWidth="220px"
marginLeft="50px"
minWidth="250px"
width="250px"
>
<FormControl component="fieldset">
<FormLabel
Expand Down
Loading