diff --git a/x-pack/plugins/dashboard_enhanced/public/services/drilldowns/dashboard_to_dashboard_drilldown/components/collect_config_container.tsx b/x-pack/plugins/dashboard_enhanced/public/services/drilldowns/dashboard_to_dashboard_drilldown/components/collect_config_container.tsx index 7c36536e8ef3e..1d6cb9aaa0feb 100644 --- a/x-pack/plugins/dashboard_enhanced/public/services/drilldowns/dashboard_to_dashboard_drilldown/components/collect_config_container.tsx +++ b/x-pack/plugins/dashboard_enhanced/public/services/drilldowns/dashboard_to_dashboard_drilldown/components/collect_config_container.tsx @@ -123,7 +123,7 @@ export class CollectConfigContainer extends React.Component< config.dashboardId ); - if (!this.isMounted) return; // bailout if response is no longer needed + if (!this.isMounted) return; // handle case when destination dashboard is no longer exist if (savedObject.error?.statusCode === 404) { @@ -134,7 +134,6 @@ export class CollectConfigContainer extends React.Component< return; } - // any other error if (savedObject.error) { this.setState({ error: savedObject.error.message,