diff --git a/x-pack/plugins/spaces/public/management/edit_space/delete_spaces_button.tsx b/x-pack/plugins/spaces/public/management/edit_space/delete_spaces_button.tsx index cf131b4c64029..a03d42d10c30f 100644 --- a/x-pack/plugins/spaces/public/management/edit_space/delete_spaces_button.tsx +++ b/x-pack/plugins/spaces/public/management/edit_space/delete_spaces_button.tsx @@ -42,11 +42,11 @@ export class DeleteSpacesButton extends Component { let ButtonComponent: any = EuiButton; - const extraProps: Partial = {}; + let extraProps: EuiButtonIconProps | undefined; if (this.props.style === 'icon') { ButtonComponent = EuiButtonIcon; - extraProps.iconType = 'trash'; + extraProps = { iconType: 'trash' }; } return (