Skip to content

Commit

Permalink
fix: limit to scene
Browse files Browse the repository at this point in the history
  • Loading branch information
k11kirky committed Dec 12, 2024
1 parent 81f9958 commit cd312c7
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion frontend/src/scenes/insights/insightDataLogic.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,11 @@ export const insightDataLogic = kea<insightDataLogicType>([
}),
actionToUrl(({ values }) => ({
setQuery: ({ query }) => {
if (values.queryChanged && insightSceneLogic.values.insightMode === ItemMode.Edit) {
if (
values.queryChanged &&
insightSceneLogic.values.insightMode === ItemMode.Edit &&
insightSceneLogic.values.activeScene === Scene.Insight
) {
// query is changed and we are in edit mode
return [
router.values.currentLocation.pathname,
Expand Down

0 comments on commit cd312c7

Please sign in to comment.