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 {