diff --git a/x-pack/plugins/transform/public/app/hooks/use_index_data.ts b/x-pack/plugins/transform/public/app/hooks/use_index_data.ts index 5732a0a747c93..fb2b3628f105f 100644 --- a/x-pack/plugins/transform/public/app/hooks/use_index_data.ts +++ b/x-pack/plugins/transform/public/app/hooks/use_index_data.ts @@ -196,7 +196,7 @@ export const useIndexData = (options: UseIndexDataOptions): UseIndexDataReturnTy setStatus(INDEX_STATUS.LOADED); } // eslint-disable-next-line react-hooks/exhaustive-deps - }, [dataGridDataError, dataGridDataIsError, dataGridDataIsLoading]); + }, [dataGridDataError, dataGridDataIsError, dataGridDataIsLoading, dataGridData]); const allDataViewFieldNames = new Set(dataView.fields.map((f) => f.name)); const { error: histogramsForFieldsError, data: histogramsForFieldsData } =