Skip to content

Commit 1ec6e70

Browse files
committed
fixed typing
1 parent 3bf8f60 commit 1ec6e70

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

  • x-pack/plugins/triggers_actions_ui/public/application/sections/alert_details/components

x-pack/plugins/triggers_actions_ui/public/application/sections/alert_details/components/alert_details.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,8 @@ export const AlertDetails: React.FunctionComponent<AlertDetailsProps> = ({
7575
chrome,
7676
} = useAppDependencies();
7777
const [{}, dispatch] = useReducer(alertReducer, { alert });
78-
const setInitialAlert = (key: string, value: any) => {
79-
dispatch({ command: { type: 'setAlert' }, payload: { key, value } });
78+
const setInitialAlert = (value: Alert) => {
79+
dispatch({ command: { type: 'setAlert' }, payload: { key: 'alert', value } });
8080
};
8181

8282
// Set breadcrumb and page title
@@ -172,7 +172,7 @@ export const AlertDetails: React.FunctionComponent<AlertDetailsProps> = ({
172172
<AlertEdit
173173
initialAlert={alert}
174174
onClose={() => {
175-
setInitialAlert('alert', alert);
175+
setInitialAlert(alert);
176176
setEditFlyoutVisibility(false);
177177
}}
178178
/>

0 commit comments

Comments
 (0)