diff --git a/public/components/datasources/components/manage/associated_objects/associated_objects_details_flyout.tsx b/public/components/datasources/components/manage/associated_objects/associated_objects_details_flyout.tsx index bd230df12..8b2ce15e8 100644 --- a/public/components/datasources/components/manage/associated_objects/associated_objects_details_flyout.tsx +++ b/public/components/datasources/components/manage/associated_objects/associated_objects_details_flyout.tsx @@ -226,7 +226,21 @@ export const AssociatedObjectsDetailsFlyout = ({ useEffect(() => { if (tableDetail && !tableDetail.columns) { - startLoading(datasourceName, tableDetail.database, tableDetail.name); + try { + const tables = CatalogCacheManager.getTable( + datasourceName, + tableDetail.database, + tableDetail.name + ); + if (tables?.columns) { + setTableColumns(tables?.columns); + } else { + startLoading(datasourceName, tableDetail.database, tableDetail.name); + } + } catch (error) { + console.error(error); + setToast('Your cache is outdated, refresh databases and tables', 'warning'); + } } else if (tableDetail && tableDetail.columns) { setTableColumns(tableDetail.columns); }