diff --git a/frontend/src/queries/nodes/DataVisualization/dataVisualizationLogic.ts b/frontend/src/queries/nodes/DataVisualization/dataVisualizationLogic.ts index a1a23ac6f0dfa..e6002ced4ce32 100644 --- a/frontend/src/queries/nodes/DataVisualization/dataVisualizationLogic.ts +++ b/frontend/src/queries/nodes/DataVisualization/dataVisualizationLogic.ts @@ -283,6 +283,12 @@ export const dataVisualizationLogic = kea([ setConditionalFormattingRulesPanelActiveKeys: (keys: string[]) => ({ keys }), })), reducers(({ props }) => ({ + query: [ + props.query, + { + setQuery: (_, { node }) => node, + }, + ], visualizationType: [ ChartDisplayType.ActionsTable as ChartDisplayType, { @@ -553,7 +559,6 @@ export const dataVisualizationLogic = kea([ return columns.filter((n) => n.type.isNumerical) }, ], - query: [(_state, props) => [props.query], (query) => query], showEditingUI: [ (state, props) => [state.insightMode, props.insightLogicProps], (insightMode, insightLogicProps) => {