diff --git a/superset-frontend/src/components/DatabaseSelector/index.tsx b/superset-frontend/src/components/DatabaseSelector/index.tsx index a65ae5ef3a6a2..26b118bcac83d 100644 --- a/superset-frontend/src/components/DatabaseSelector/index.tsx +++ b/superset-frontend/src/components/DatabaseSelector/index.tsx @@ -306,7 +306,7 @@ export default function DatabaseSelector({ } function renderSchemaSelect() { - const refreshIcon = !formMode && !readOnly && ( + const refreshIcon = !readOnly && ( setRefresh(refresh + 1)} tooltipContent={t('Force refresh schema list')} diff --git a/superset-frontend/src/components/TableSelector/index.tsx b/superset-frontend/src/components/TableSelector/index.tsx index e41696b7e62e0..4a9fb62d944c0 100644 --- a/superset-frontend/src/components/TableSelector/index.tsx +++ b/superset-frontend/src/components/TableSelector/index.tsx @@ -327,7 +327,7 @@ const TableSelector: FunctionComponent = ({ /> ); - const refreshLabel = !formMode && !readOnly && ( + const refreshLabel = !readOnly && ( refetch()} tooltipContent={t('Force refresh table list')}