Skip to content

Commit

Permalink
fix(experiments): Don't rerender on every input change (#18750)
Browse files Browse the repository at this point in the history
  • Loading branch information
neilkakkar authored Nov 20, 2023
1 parent a9528ad commit a22edc8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions frontend/src/scenes/experiments/Experiment.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -244,13 +244,13 @@ export function Experiment(): JSX.Element {
numbers, hyphens, and underscores.
</div>
<div className="variants">
{experiment.parameters.feature_flag_variants?.map((variant, index) => (
{experiment.parameters.feature_flag_variants?.map((_, index) => (
<Group
key={index}
name={['parameters', 'feature_flag_variants', index]}
>
<div
key={`${variant.key}-${index}`}
key={`variant-${index}`}
className={clsx(
'feature-flag-variant',
index === 0
Expand Down
2 changes: 1 addition & 1 deletion pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit a22edc8

Please sign in to comment.