1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-06-09 01:17:06 +02:00
This commit is contained in:
andreas-unleash 2022-08-08 12:16:53 +03:00
parent ceb7d2e3cc
commit e75f03b8f2
2 changed files with 7 additions and 3 deletions

View File

@ -69,7 +69,9 @@ export const PlaygroundResultStrategyExecution = ({
/> />
<ConditionallyRender <ConditionallyRender
condition={Boolean( condition={Boolean(
constraints && constraints.length > 0 && !hasParameters constraints &&
constraints.length > 0 &&
!hasParameters
)} )}
show={<StrategySeparator text="AND" />} show={<StrategySeparator text="AND" />}
/> />

View File

@ -7,7 +7,7 @@ import React, { Fragment } from 'react';
import { PlaygroundParameterItem } from '../PlaygroundParamteterItem/PlaygroundParameterItem'; import { PlaygroundParameterItem } from '../PlaygroundParamteterItem/PlaygroundParameterItem';
import { ConditionallyRender } from 'component/common/ConditionallyRender/ConditionallyRender'; import { ConditionallyRender } from 'component/common/ConditionallyRender/ConditionallyRender';
import { StrategySeparator } from 'component/common/StrategySeparator/StrategySeparator'; import { StrategySeparator } from 'component/common/StrategySeparator/StrategySeparator';
import {Chip} from '@mui/material'; import { Chip } from '@mui/material';
import PercentageCircle from 'component/common/PercentageCircle/PercentageCircle'; import PercentageCircle from 'component/common/PercentageCircle/PercentageCircle';
import { PlaygroundConstraintSchema } from 'hooks/api/actions/usePlayground/playground.model'; import { PlaygroundConstraintSchema } from 'hooks/api/actions/usePlayground/playground.model';
import { useStrategies } from 'hooks/api/getters/useStrategies/useStrategies'; import { useStrategies } from 'hooks/api/getters/useStrategies/useStrategies';
@ -96,7 +96,9 @@ export const PlaygroundResultStrategyExecutionCustomStrategyParams = ({
</Fragment> </Fragment>
); );
case 'string': case 'string':
const value = parseParameterString(parameters[param.name]) ?? 'no value'; const value =
parseParameterString(parameters[param.name]) ??
'no value';
return ( return (
<Fragment key={param?.name}> <Fragment key={param?.name}>
<PlaygroundParameterItem <PlaygroundParameterItem