Skip to content

Commit

Permalink
Rename diff segments to segment overrides
Browse files Browse the repository at this point in the history
  • Loading branch information
kyle-ssg committed Nov 20, 2024
1 parent 1076ed5 commit 954e775
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions frontend/web/components/diff/DiffFeature.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,10 @@ const DiffFeature: FC<FeatureDiffType> = ({
projectId,
tabTheme,
}) => {
const {data:projectFlag} = useGetProjectFlagQuery({project:projectId, id: featureId})
const { data: projectFlag } = useGetProjectFlagQuery({
id: featureId,
project: projectId,
})

const oldEnv = oldState?.find((v) => !v.feature_segment)
const newEnv = newState?.find((v) => !v.feature_segment)
Expand Down Expand Up @@ -179,7 +182,10 @@ const DiffFeature: FC<FeatureDiffType> = ({
</div>
}
>
<DiffVariations projectFlag={projectFlag} diffs={variationDiffs.diffs} />
<DiffVariations
projectFlag={projectFlag}
diffs={variationDiffs.diffs}
/>
</TabItem>
)}
{!!segmentDiffs?.diffs.length && (
Expand Down

0 comments on commit 954e775

Please sign in to comment.