resolve correct target name (#4165)

This commit is contained in:
Laurin Quast 2024-03-06 16:35:29 +01:00 committed by GitHub
parent a94a83cff5
commit 0692c2cb3c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 8 additions and 7 deletions

View file

@ -254,10 +254,8 @@ export class SchemaPublisher {
return {
id: targetId,
name: (
await this.targetManager.getTarget({
organization: args.organizationId,
project: args.projectId,
target: args.targetId,
await this.targetManager.getTargetById({
targetId: targetId,
})
).name,
};

View file

@ -254,11 +254,14 @@ function ChangeItem(props: {
{target.name}
</Link>
)}
{index === arr.length - 1 ? null : index === arr.length - 2 ? 'and' : ','}
{index === arr.length - 1
? null
: index === arr.length - 2
? ' and '
: ', '}
</>
))}{' '}
target{metadata.settings.targets.length > 1 && 's'} insights for live usage
data.
target insights for live usage data.
</span>
)}
</div>