From 3ffa5e69e2fc7c2e7e05757d6a0fbc3db8472058 Mon Sep 17 00:00:00 2001 From: Kibana Machine <42973632+kibanamachine@users.noreply.github.com> Date: Mon, 8 Jan 2024 15:24:53 -0500 Subject: [PATCH] [8.12] [ML] Data Frame Analytics: ensure option to delete data view is available when deleting job (#174381) (#174484) # Backport This will backport the following commits from `main` to `8.12`: - [[ML] Data Frame Analytics: ensure option to delete data view is available when deleting job (#174381)](https://github.com/elastic/kibana/pull/174381) ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) Co-authored-by: Melissa Alvarez --- .../components/action_delete/use_delete_action.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/x-pack/plugins/ml/public/application/data_frame_analytics/pages/analytics_management/components/action_delete/use_delete_action.tsx b/x-pack/plugins/ml/public/application/data_frame_analytics/pages/analytics_management/components/action_delete/use_delete_action.tsx index 1cbe2724a1e87..8593a9631d321 100644 --- a/x-pack/plugins/ml/public/application/data_frame_analytics/pages/analytics_management/components/action_delete/use_delete_action.tsx +++ b/x-pack/plugins/ml/public/application/data_frame_analytics/pages/analytics_management/components/action_delete/use_delete_action.tsx @@ -59,7 +59,7 @@ export const useDeleteAction = (canDeleteDataFrameAnalytics: boolean) => { const checkDataViewExists = async () => { try { - const dv = (await dataViews.getIdsWithTitle()).find(({ title }) => title === indexName); + const dv = (await dataViews.getIdsWithTitle(true)).find(({ title }) => title === indexName); if (dv !== undefined) { setDataViewExists(true); } else {