Skip to content

Commit

Permalink
move rules creation out of closing popover (#107957)
Browse files Browse the repository at this point in the history
Co-authored-by: Kibana Machine <[email protected]>
  • Loading branch information
neptunian and kibanamachine authored Aug 10, 2021
1 parent b4a736c commit baa903d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ export const AlertsDropdown: React.FC<{}> = () => {
const [isPopoverOpen, setIsPopoverOpen] = useState(false);

const closePopover = () => {
alertsEnableModalProvider.enableAlerts();
setIsPopoverOpen(false);
};

Expand All @@ -32,6 +31,7 @@ export const AlertsDropdown: React.FC<{}> = () => {
};

const createDefaultRules = () => {
alertsEnableModalProvider.enableAlerts();
closePopover();
};

Expand Down

0 comments on commit baa903d

Please sign in to comment.