diff --git a/frontend/src/scenes/insights/insightDataLogic.ts b/frontend/src/scenes/insights/insightDataLogic.ts index e2ac23f175ed2..153be0b0b27c3 100644 --- a/frontend/src/scenes/insights/insightDataLogic.ts +++ b/frontend/src/scenes/insights/insightDataLogic.ts @@ -84,21 +84,14 @@ export const insightDataLogic = kea([ selectors({ query: [ - (s) => [s.propsQuery, s.filters, s.insight, s.internalQuery, s.filterTestAccountsDefault], - (propsQuery, filters, insight, internalQuery, filterTestAccountsDefault) => - propsQuery || + (s) => [s.filters, s.insight, s.internalQuery, s.filterTestAccountsDefault], + (filters, insight, internalQuery, filterTestAccountsDefault) => internalQuery || insight.query || (filters && filters.insight ? queryFromFilters(filters) : undefined) || queryFromKind(NodeKind.TrendsQuery, filterTestAccountsDefault), ], - propsQuery: [ - () => [(_, props) => props], - // overwrite query from props for standalone InsightVizNode queries - (props: InsightLogicProps) => (props.dashboardItemId?.startsWith('new-AdHoc.') ? props.query : null), - ], - isQueryBasedInsight: [ (s) => [s.query], (query) => { diff --git a/frontend/src/scenes/notebooks/Nodes/NotebookNodeQuery.tsx b/frontend/src/scenes/notebooks/Nodes/NotebookNodeQuery.tsx index 9f5838069d449..3808db86bea3a 100644 --- a/frontend/src/scenes/notebooks/Nodes/NotebookNodeQuery.tsx +++ b/frontend/src/scenes/notebooks/Nodes/NotebookNodeQuery.tsx @@ -87,7 +87,7 @@ const Component = ({ attributes }: NotebookNodeProps - + ) } @@ -126,6 +126,7 @@ export const Settings = ({ if (NodeKind.InsightVizNode === modifiedQuery.kind || NodeKind.SavedInsightNode === modifiedQuery.kind) { modifiedQuery.showFilters = true + modifiedQuery.showHeader = true modifiedQuery.showResults = false modifiedQuery.embedded = true }