fix: display name for events

This commit is contained in:
Carl-Gerhard Lindesvärd
2025-08-08 14:13:56 +02:00
parent 113ab0a28d
commit 26efb7a94d

View File

@@ -586,9 +586,12 @@ export async function getChart(input: IChartInput) {
return {
id: getSerieId(serie),
names: includeEventName
? [`(${alphaId}) ${serie.name[0]}`, ...serie.name.slice(1)]
: serie.name,
names:
input.breakdowns.length === 0 && serie.event.displayName
? [serie.event.displayName]
: includeEventName
? [`(${alphaId}) ${serie.name[0]}`, ...serie.name.slice(1)]
: serie.name,
event,
metrics: {
...metrics,