mirror of
https://github.com/graphql-hive/console
synced 2026-05-24 09:38:26 +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 {
|
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,
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -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>
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue