diff --git a/x-pack/plugins/transform/public/app/hooks/use_get_data_views_title_id_map.ts b/x-pack/plugins/transform/public/app/hooks/use_get_data_views_title_id_map.ts index 5a19aaf13e35c..d7454ffc63a15 100644 --- a/x-pack/plugins/transform/public/app/hooks/use_get_data_views_title_id_map.ts +++ b/x-pack/plugins/transform/public/app/hooks/use_get_data_views_title_id_map.ts @@ -21,11 +21,7 @@ export const useGetDataViewsTitleIdMap = () => { return useQuery( [TRANSFORM_REACT_QUERY_KEYS.GET_DATA_VIEW_IDS_WITH_TITLE], async () => { - // Since we let useQuery take care of caching, - // clear the cache to ensure we get the latest data view list. - data.dataViews.clearCache(); - - return (await data.dataViews.getIdsWithTitle()).reduce>( + return (await data.dataViews.getIdsWithTitle(true)).reduce>( (acc, { id, title }) => { acc[title] = id; return acc;