File tree Expand file tree Collapse file tree
x-pack/plugins/triggers_actions_ui/public/application/sections/alert_details/components Expand file tree Collapse file tree Original file line number Diff line number Diff 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 />
You can’t perform that action at this time.
0 commit comments