mirror of
https://github.com/Unleash/unleash.git
synced 2024-10-18 20:09:08 +02:00
dbed06f300
Co-authored-by: Ivar Conradi Østhus <ivarconr@gmail.com> Co-authored-by: Christopher Kolstad <chriswk@getunleash.ai> Co-authored-by: Christopher Kolstad <git@chriswk.no>
14 lines
336 B
JavaScript
14 lines
336 B
JavaScript
export const resolveDefaultParamValue = (name, featureToggleName) => {
|
|
switch (name) {
|
|
case 'percentage':
|
|
case 'rollout':
|
|
return '100';
|
|
case 'stickiness':
|
|
return 'default';
|
|
case 'groupId':
|
|
return featureToggleName;
|
|
default:
|
|
return '';
|
|
}
|
|
};
|