mirror of
https://github.com/Unleash/unleash.git
synced 2025-05-31 01:16:01 +02:00
PR comments
This commit is contained in:
parent
418ab0adbd
commit
69d6a1f186
@ -88,18 +88,8 @@ export const PlaygroundResultStrategyExecutionParameters = ({
|
||||
key={key}
|
||||
value={hosts}
|
||||
text={'host'}
|
||||
input={
|
||||
Boolean(input?.context?.[getMappedParam(key)])
|
||||
? input?.context?.[getMappedParam(key)]
|
||||
: 'no value'
|
||||
}
|
||||
showReason={
|
||||
Boolean(input?.context?.[getMappedParam(key)])
|
||||
? !hosts.includes(
|
||||
input?.context?.[getMappedParam(key)]
|
||||
)
|
||||
: undefined
|
||||
}
|
||||
input={'no value'}
|
||||
showReason={undefined}
|
||||
/>
|
||||
);
|
||||
case 'IPs':
|
||||
|
@ -4,7 +4,6 @@ export const getMappedParam = (key: string) => {
|
||||
return 'userId';
|
||||
case 'IPS':
|
||||
return 'remoteAddress';
|
||||
case 'HOSTNAMES':
|
||||
default:
|
||||
return key;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user