fix(toolbar): fixes undefined in the variant override (#33270)

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
This commit is contained in:
Dylan Martin
2025-06-05 15:52:29 -07:00
committed by GitHub
parent 7a72022fdf
commit 2d084f9a4e
5 changed files with 3 additions and 1 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 44 KiB

After

Width:  |  Height:  |  Size: 42 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 46 KiB

After

Width:  |  Height:  |  Size: 44 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 46 KiB

After

Width:  |  Height:  |  Size: 44 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 42 KiB

After

Width:  |  Height:  |  Size: 40 KiB

View File

@@ -111,7 +111,9 @@ export const FlagsToolbarMenu = (): JSX.Element => {
value={typeof currentValue === 'string' ? currentValue : undefined}
options={
feature_flag.filters?.multivariate?.variants.map((variant) => ({
label: `${variant.key} - ${variant.name} (${variant.rollout_percentage}%)`,
label: `${variant.key}${
variant.name ? ` - ${variant.name}` : ''
} (${variant.rollout_percentage}%)`,
value: variant.key,
})) || []
}