Skip to content

Commit

Permalink
Fix delete exclusion list throwing error (#1922)
Browse files Browse the repository at this point in the history
Co-authored-by: RidhamShah <[email protected]>
Co-authored-by: Ben Blanchard <[email protected]>
  • Loading branch information
3 people authored Sep 11, 2024
1 parent 4d623f2 commit 569b306
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ const reducer = createReducer(
on(FeatureFlagsActions.actionDeleteFeatureFlagInclusionListSuccess, (state, { segmentId }) => {
const updatedState = { ...state, isLoadingUpsertPrivateSegmentList: false };
const flagId = Object.keys(state.entities).find((id) =>
state.entities[id].featureFlagSegmentInclusion?.some((inclusion) => inclusion.segment.id === segmentId)
state.entities[id].featureFlagSegmentInclusion?.some((inclusion) => inclusion.segment?.id === segmentId)
);

if (flagId) {
Expand Down

0 comments on commit 569b306

Please sign in to comment.