Skip to content

Commit

Permalink
fix: data viz node doesn't persist display type (#26164)
Browse files Browse the repository at this point in the history
  • Loading branch information
anirudhpillai authored Nov 14, 2024
1 parent aafaea1 commit bc59a1e
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -283,6 +283,12 @@ export const dataVisualizationLogic = kea<dataVisualizationLogicType>([
setConditionalFormattingRulesPanelActiveKeys: (keys: string[]) => ({ keys }),
})),
reducers(({ props }) => ({
query: [
props.query,
{
setQuery: (_, { node }) => node,
},
],
visualizationType: [
ChartDisplayType.ActionsTable as ChartDisplayType,
{
Expand Down Expand Up @@ -553,7 +559,6 @@ export const dataVisualizationLogic = kea<dataVisualizationLogicType>([
return columns.filter((n) => n.type.isNumerical)
},
],
query: [(_state, props) => [props.query], (query) => query],
showEditingUI: [
(state, props) => [state.insightMode, props.insightLogicProps],
(insightMode, insightLogicProps) => {
Expand Down

0 comments on commit bc59a1e

Please sign in to comment.