From 5be048af2b2d05c77583122149e5e13631f8fe09 Mon Sep 17 00:00:00 2001 From: lcawl Date: Fri, 29 Jan 2021 15:13:51 -0800 Subject: [PATCH] Fixes type script errs --- .../plugins/monitoring/public/alerts/lib/alerts_toast.tsx | 6 ++---- .../monitoring/public/lib/internal_monitoring_toasts.tsx | 6 ++---- 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/x-pack/plugins/monitoring/public/alerts/lib/alerts_toast.tsx b/x-pack/plugins/monitoring/public/alerts/lib/alerts_toast.tsx index 8fd11d236465d2f..c3b8eb65c6457de 100644 --- a/x-pack/plugins/monitoring/public/alerts/lib/alerts_toast.tsx +++ b/x-pack/plugins/monitoring/public/alerts/lib/alerts_toast.tsx @@ -18,8 +18,7 @@ export interface EnableAlertResponse { } const showTlsAndEncryptionError = () => { - const { docLinks } = Legacy.shims.docLinks; - const settingsUrl = docLinks.links.alerting.generalSettings; + const settingsUrl = Legacy.shims.docLinks.links.alerting.generalSettings; Legacy.shims.toastNotifications.addWarning({ title: toMountPoint( @@ -47,8 +46,7 @@ const showTlsAndEncryptionError = () => { }; const showUnableToDisableWatcherClusterAlertsError = () => { - const { docLinks } = Legacy.shims.docLinks; - const settingsUrl = docLinks.links.alerting.generalSettings; + const settingsUrl = Legacy.shims.docLinks.links.alerting.generalSettings; Legacy.shims.toastNotifications.addWarning({ title: toMountPoint( diff --git a/x-pack/plugins/monitoring/public/lib/internal_monitoring_toasts.tsx b/x-pack/plugins/monitoring/public/lib/internal_monitoring_toasts.tsx index c35399fe012ef3c..15ee969c0948ec6 100644 --- a/x-pack/plugins/monitoring/public/lib/internal_monitoring_toasts.tsx +++ b/x-pack/plugins/monitoring/public/lib/internal_monitoring_toasts.tsx @@ -28,8 +28,7 @@ const learnMoreLabel = () => }); const showIfLegacyOnlyIndices = () => { - const { docLinks } = Legacy.shims.docLinks; - const blogUrl = docLinks.links.monitoring.metricbeatBlog; + const blogUrl = Legacy.shims.docLinks.links.monitoring.metricbeatBlog; const toast = Legacy.shims.toastNotifications.addWarning({ title: toMountPoint( { }; const showIfLegacyAndMetricbeatIndices = () => { - const { docLinks } = Legacy.shims.docLinks; - const blogUrl = docLinks.links.monitoring.metricbeatBlog; + const blogUrl = Legacy.shims.docLinks.links.monitoring.metricbeatBlog; const toast = Legacy.shims.toastNotifications.addWarning({ title: toMountPoint(