1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-01-11 00:08:30 +01: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
condition={Boolean(
constraints && constraints.length > 0 && !hasParameters
constraints &&
constraints.length > 0 &&
!hasParameters
)}
show={<StrategySeparator text="AND" />}
/>

View File

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