[WebProfiler] Fix Javascript error when using custom stopwatch categories
This commit is contained in:
parent
b0989aaffc
commit
e991472a76
@ -252,11 +252,11 @@ class Legend {
|
|||||||
}
|
}
|
||||||
|
|
||||||
get(category) {
|
get(category) {
|
||||||
return this.categories.find(element => element.value === category);
|
return this.categories.find(element => element.value === category) || this.createCategory(category);
|
||||||
}
|
}
|
||||||
|
|
||||||
getClassname(category) {
|
getClassname(category) {
|
||||||
return this.classnames[category];
|
return this.classnames[category] || '';
|
||||||
}
|
}
|
||||||
|
|
||||||
getSectionClassname() {
|
getSectionClassname() {
|
||||||
|
Reference in New Issue
Block a user