1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-06-04 01:18:20 +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} 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':

View File

@ -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;
} }