Allow obtaining a color for usage types that do not have a predefined one

This commit is contained in:
Fabricio Duarte 2026-06-24 22:28:46 -03:00
parent cc7db602fe
commit c2b19a8295
1 changed files with 1 additions and 1 deletions

View File

@ -649,7 +649,7 @@ export default {
},
getColor (row) {
const quotaType = getQuotaTypeByName(row.name)
if (quotaType) {
if (quotaType?.chartColor) {
return getChartColorObject(quotaType.chartColor)
}
return getChartColorObject(this.textToDeterministicColor(this.getName(row)))