Skip to content

Commit

Permalink
Fix type issue
Browse files Browse the repository at this point in the history
  • Loading branch information
phillipb committed Mar 18, 2020
1 parent 99c81e2 commit 70abcc0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ interface Props {
errors: IErrorObject[];
alertParams: {
criteria: MetricExpression[];
groupBy?: string | null;
groupBy?: string;
filterQuery?: string;
};
alertsContext: AlertsContextValue<AlertContextMeta>;
Expand Down Expand Up @@ -135,7 +135,7 @@ export const Expressions: React.FC<Props> = props => {

const onGroupByChange = useCallback(
(group: string | null) => {
setAlertParams('groupBy', group);
setAlertParams('groupBy', group || undefined);
},
[setAlertParams]
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -145,15 +145,6 @@ export const NodeContextMenu: React.FC<Props> = ({
isDisabled: !showUptimeLink,
};

const alertMenuItem: SectionLinkProps = {
label: i18n.translate('xpack.infra.nodeContextMenu.createAlertLink', {
defaultMessage: 'Create Alert',
}),
onClick: () => {
setFlyoutVisible(true);
},
};

return (
<>
<ActionMenu
Expand Down

0 comments on commit 70abcc0

Please sign in to comment.