Skip to content

Commit

Permalink
fix(flags): prevent hiding group related flags if group type index is 0
Browse files Browse the repository at this point in the history
  • Loading branch information
havenbarnes committed Feb 3, 2025
1 parent b3176f6 commit 7702a60
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/src/scenes/persons/relatedFeatureFlagsLogic.ts
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ export const relatedFeatureFlagsLogic = kea<relatedFeatureFlagsLogicType>([
.filter((flag) => flag.evaluation !== undefined)

// return related feature flags for group property targeting or person property targeting, but not both
if (props.groupTypeIndex && props.groups && Object.keys(props.groups).length > 0) {
if (props.groupTypeIndex !== undefined && props.groups && Object.keys(props.groups).length > 0) {
flags = flags.filter(
(flag) =>
flag.filters.aggregation_group_type_index !== undefined &&
Expand Down

0 comments on commit 7702a60

Please sign in to comment.