Skip to content

Commit

Permalink
Fix title
Browse files Browse the repository at this point in the history
  • Loading branch information
benjackwhite committed Sep 12, 2023
1 parent 4aeac98 commit eaaf8f9
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions frontend/src/scenes/notebooks/Nodes/NotebookNodeQuery.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,12 @@ export const NotebookNodeQuery = createPostHogWidgetNode<NotebookNodeQueryAttrib
} else {
title = 'Data exploration'
}
} else if (NodeKind.InsightVizNode === query.kind) {
if (query.source.kind) {
title = query.source.kind.replace('Node', '').replace('Query', '')
} else {
title = 'Insight'
}
}
return Promise.resolve(title)
},
Expand Down

0 comments on commit eaaf8f9

Please sign in to comment.