diff --git a/superset-frontend/src/dashboard/components/SliceHeaderControls/index.tsx b/superset-frontend/src/dashboard/components/SliceHeaderControls/index.tsx index ffa9b589e373b..1b01980c7d2b6 100644 --- a/superset-frontend/src/dashboard/components/SliceHeaderControls/index.tsx +++ b/superset-frontend/src/dashboard/components/SliceHeaderControls/index.tsx @@ -88,6 +88,7 @@ export interface SliceHeaderControlsProps { slice_name: string; slice_id: number; slice_description: string; + form_data?: { emit_filter?: boolean }; }; componentId: string; @@ -229,6 +230,7 @@ class SliceHeaderControls extends React.PureComponent< value.behaviors?.includes(Behavior.INTERACTIVE_CHART), ) .find(([key]) => key === slice.viz_type); + const canEmitCrossFilter = slice.form_data?.emit_filter; const cachedWhen = (cachedDttm || []).map(itemCachedDttm => moment.utc(itemCachedDttm).fromNow(), @@ -335,7 +337,8 @@ class SliceHeaderControls extends React.PureComponent< )} {isFeatureEnabled(FeatureFlag.DASHBOARD_CROSS_FILTERS) && - isCrossFilter && ( + isCrossFilter && + canEmitCrossFilter && (