Skip to content

Commit

Permalink
fix(flags): prevent hiding group related flags if group type index is…
Browse files Browse the repository at this point in the history
… 0 (PostHog#28232)

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
  • Loading branch information
havenbarnes and github-actions[bot] authored Feb 3, 2025
1 parent b3176f6 commit f22ab17
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 f22ab17

Please sign in to comment.