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