1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-05-31 01:16:01 +02:00

PR comments

This commit is contained in:
andreas-unleash 2022-08-09 10:10:45 +03:00
parent 418ab0adbd
commit 69d6a1f186
2 changed files with 2 additions and 13 deletions

View File

@ -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':

View File

@ -4,7 +4,6 @@ export const getMappedParam = (key: string) => {
return 'userId';
case 'IPS':
return 'remoteAddress';
case 'HOSTNAMES':
default:
return key;
}