Skip to content

Commit

Permalink
fix: Use default event instead of all events for new graph series (#2…
Browse files Browse the repository at this point in the history
  • Loading branch information
timgl authored Apr 24, 2024
1 parent 0955a0b commit 944a600
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import { actions, connect, events, kea, key, listeners, path, props, reducers, s
import { convertPropertyGroupToProperties } from 'lib/components/PropertyFilters/utils'
import { uuid } from 'lib/utils'
import { eventUsageLogic, GraphSeriesAddedSource } from 'lib/utils/eventUsageLogic'
import { getDefaultEventName } from 'lib/utils/getAppContext'
import { insightDataLogic } from 'scenes/insights/insightDataLogic'

import {
Expand Down Expand Up @@ -262,7 +263,7 @@ export const entityFilterLogic = kea<entityFilterLogicType>([
const precedingEntity = values.localFilters[previousLength - 1] as LocalFilter | undefined
const order = precedingEntity ? precedingEntity.order + 1 : 0
const newFilter = {
id: null,
id: getDefaultEventName(),
uuid: uuid(),
type: EntityTypes.EVENTS,
order: order,
Expand Down

0 comments on commit 944a600

Please sign in to comment.