mirror of
https://github.com/graphql-hive/console
synced 2026-05-23 09:08:34 +00:00
resolve correct target name (#4165)
This commit is contained in:
parent
a94a83cff5
commit
0692c2cb3c
2 changed files with 8 additions and 7 deletions
|
|
@ -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,
|
||||
};
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Reference in a new issue