From 14475db99c53779af4caa88b3a2211b24a2bfe5a Mon Sep 17 00:00:00 2001 From: Melissa Alvarez Date: Thu, 14 Nov 2019 09:58:32 -0500 Subject: [PATCH] remove redundant isModalVisible check --- .../create_analytics_flyout_wrapper.tsx | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/x-pack/legacy/plugins/ml/public/data_frame_analytics/pages/analytics_management/components/create_analytics_flyout_wrapper/create_analytics_flyout_wrapper.tsx b/x-pack/legacy/plugins/ml/public/data_frame_analytics/pages/analytics_management/components/create_analytics_flyout_wrapper/create_analytics_flyout_wrapper.tsx index 9c110379e96eb..8716f84be3d34 100644 --- a/x-pack/legacy/plugins/ml/public/data_frame_analytics/pages/analytics_management/components/create_analytics_flyout_wrapper/create_analytics_flyout_wrapper.tsx +++ b/x-pack/legacy/plugins/ml/public/data_frame_analytics/pages/analytics_management/components/create_analytics_flyout_wrapper/create_analytics_flyout_wrapper.tsx @@ -4,7 +4,7 @@ * you may not use this file except in compliance with the Elastic License. */ -import React, { Fragment, FC } from 'react'; +import React, { FC } from 'react'; import { CreateAnalyticsFormProps } from '../../hooks/use_create_analytics_form'; @@ -20,13 +20,9 @@ export const CreateAnalyticsFlyoutWrapper: FC = props } return ( - - {isModalVisible && ( - - {isAdvancedEditorEnabled === false && } - {isAdvancedEditorEnabled === true && } - - )} - + + {isAdvancedEditorEnabled === false && } + {isAdvancedEditorEnabled === true && } + ); };