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 { return {
id: targetId, id: targetId,
name: ( name: (
await this.targetManager.getTarget({ await this.targetManager.getTargetById({
organization: args.organizationId, targetId: targetId,
project: args.projectId,
target: args.targetId,
}) })
).name, ).name,
}; };

View file

@ -254,11 +254,14 @@ function ChangeItem(props: {
{target.name} {target.name}
</Link> </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 target insights for live usage data.
data.
</span> </span>
)} )}
</div> </div>