Fixed: Tag details fails for release profiles with tags
This commit is contained in:
parent
25eb0ba816
commit
fbc258c092
|
@ -140,23 +140,6 @@ function TagDetailsModalContent(props) {
|
|||
}
|
||||
</div>
|
||||
|
||||
<div>
|
||||
{
|
||||
item.preferred.map((i) => {
|
||||
const isPreferred = i.value >= 0;
|
||||
|
||||
return (
|
||||
<Label
|
||||
key={i.key}
|
||||
kind={isPreferred ? kinds.DEFAULT : kinds.WARNING}
|
||||
>
|
||||
{i.key} {isPreferred && '+'}{i.value}
|
||||
</Label>
|
||||
);
|
||||
})
|
||||
}
|
||||
</div>
|
||||
|
||||
<div>
|
||||
{
|
||||
item.ignored.map((i) => {
|
||||
|
|
|
@ -122,7 +122,7 @@ class Tag extends Component {
|
|||
{
|
||||
restrictionIds.length ?
|
||||
<div>
|
||||
{restrictionIds.length} restriction{restrictionIds.length > 1 && 's'}
|
||||
{restrictionIds.length} release profile{restrictionIds.length > 1 && 's'}
|
||||
</div> :
|
||||
null
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue