mirror of
https://github.com/Unleash/unleash.git
synced 2025-02-23 00:22:19 +01:00
fix: existing stickiness value should be available in the dropdown (#4228)
existing stickiness value should be available in the dropdown even if the context field is no longer sticky Before: if the context field is no longer sticky  After  Closes # [1-1115](https://linear.app/unleash/issue/1-1115/current-gradual-rollout-stickiness-configurations-should-take-priority) Signed-off-by: andreas-unleash <andreas@getunleash.ai>
This commit is contained in:
parent
bfa20849e9
commit
846a62ecec
@ -43,6 +43,11 @@ export const StickinessSelect = ({
|
||||
options.push({ key: 'random', label: 'random' });
|
||||
}
|
||||
|
||||
// Add existing value to the options
|
||||
if (value && !options.find(option => option.key === value)) {
|
||||
options.push({ key: value, label: value });
|
||||
}
|
||||
|
||||
return options;
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user