From 9c8d88a9e7aac88ff48ae1ccc8cdd4930610353c Mon Sep 17 00:00:00 2001 From: Daniel Gaspar Date: Mon, 5 Sep 2022 11:54:52 +0100 Subject: [PATCH] address comment --- superset-frontend/src/views/CRUD/chart/ChartList.tsx | 2 +- superset-frontend/src/views/CRUD/dashboard/DashboardList.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/superset-frontend/src/views/CRUD/chart/ChartList.tsx b/superset-frontend/src/views/CRUD/chart/ChartList.tsx index 7440d11ac60da..8fbf37392f870 100644 --- a/superset-frontend/src/views/CRUD/chart/ChartList.tsx +++ b/superset-frontend/src/views/CRUD/chart/ChartList.tsx @@ -216,7 +216,7 @@ function ChartList(props: ChartListProps) { hasPerm('can_export') && isFeatureEnabled(FeatureFlag.VERSIONED_EXPORT); const initialSort = [{ id: 'changed_on_delta_humanized', desc: true }]; const enableBroadUserAccess = - bootstrapData?.common?.conf?.ENABLE_BROAD_ACTIVITY_ACCESS || false; + bootstrapData?.common?.conf?.ENABLE_BROAD_ACTIVITY_ACCESS; const handleBulkChartExport = (chartsToExport: Chart[]) => { const ids = chartsToExport.map(({ id }) => id); handleResourceExport('chart', ids, () => { diff --git a/superset-frontend/src/views/CRUD/dashboard/DashboardList.tsx b/superset-frontend/src/views/CRUD/dashboard/DashboardList.tsx index f38f733fb1572..8569f840d3688 100644 --- a/superset-frontend/src/views/CRUD/dashboard/DashboardList.tsx +++ b/superset-frontend/src/views/CRUD/dashboard/DashboardList.tsx @@ -134,7 +134,7 @@ function DashboardList(props: DashboardListProps) { const [passwordFields, setPasswordFields] = useState([]); const [preparingExport, setPreparingExport] = useState(false); const enableBroadUserAccess = - bootstrapData?.common?.conf?.ENABLE_BROAD_ACTIVITY_ACCESS || false; + bootstrapData?.common?.conf?.ENABLE_BROAD_ACTIVITY_ACCESS; const openDashboardImportModal = () => { showImportModal(true);