File tree Expand file tree Collapse file tree 3 files changed +8
-1
lines changed
Expand file tree Collapse file tree 3 files changed +8
-1
lines changed Original file line number Diff line number Diff line change 11import { Box , BoxProps , Theme } from "@mui/material" ;
22import { makeStyles } from "@mui/styles" ;
33import clsx from "clsx" ;
4- import React , { forwardRef , HTMLProps } from "react" ;
4+ import React , { HTMLProps , forwardRef } from "react" ;
55
66import ChartPanelLayoutCanvas , {
77 chartPanelLayoutGridClasses ,
Original file line number Diff line number Diff line change @@ -36,6 +36,7 @@ import {
3636} from "@/components/chart-table-preview" ;
3737import { useChartStyles } from "@/components/chart-utils" ;
3838import { ChartWithFilters } from "@/components/chart-with-filters" ;
39+ import { DashboardInteractiveFilters } from "@/components/dashboard-interactive-filters" ;
3940import DebugPanel from "@/components/debug-panel" ;
4041import { DragHandle , DragHandleProps } from "@/components/drag-handle" ;
4142import Flex from "@/components/flex" ;
@@ -85,6 +86,11 @@ export const ChartPreview = (props: ChartPreviewProps) => {
8586 // we switch tabs in the configurator, otherwise we end up with the wrong
8687 // data in the downstream hooks (useDataCubesMetadataQuery, etc.)
8788 < ChartTablePreviewProvider key = { state . activeChartKey } >
89+ { state . state !== "CONFIGURING_CHART" ? (
90+ < DashboardInteractiveFilters
91+ key = { state . chartConfigs . map ( ( x ) => x . key ) . join ( "," ) }
92+ />
93+ ) : null }
8894 < ChartWrapper editing = { editing } layoutType = { layout . type } >
8995 < ChartPreviewInner dataSource = { dataSource } />
9096 </ ChartWrapper >
Original file line number Diff line number Diff line change @@ -209,6 +209,7 @@ const LayoutSharedFiltersConfigurator = () => {
209209 ) ;
210210
211211 switch ( layout . type ) {
212+ case "tab" :
212213 case "dashboard" :
213214 return (
214215 < ControlSection
You can’t perform that action at this time.
0 commit comments