From 72096f435ee70f8377150bfd30708c0e595b7334 Mon Sep 17 00:00:00 2001 From: justin-park Date: Thu, 3 Nov 2022 15:36:37 -0700 Subject: [PATCH] chore(dataset): enable reload for schema and table --- superset-frontend/src/components/DatabaseSelector/index.tsx | 2 +- superset-frontend/src/components/TableSelector/index.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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')}