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,7 +586,10 @@ export async function getChart(input: IChartInput) {
return { return {
id: getSerieId(serie), id: getSerieId(serie),
names: includeEventName names:
input.breakdowns.length === 0 && serie.event.displayName
? [serie.event.displayName]
: includeEventName
? [`(${alphaId}) ${serie.name[0]}`, ...serie.name.slice(1)] ? [`(${alphaId}) ${serie.name[0]}`, ...serie.name.slice(1)]
: serie.name, : serie.name,
event, event,