Skip to content

Commit

Permalink
Please test coverage.
Browse files Browse the repository at this point in the history
  • Loading branch information
KeesCBakker committed May 1, 2024
1 parent cce94d2 commit ecbfca9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 1 addition & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
"sparkline",
"stephenyeargin",
"templating",
"timespan",
"xaxis",
"yaxes",
"yaxis",
Expand Down
4 changes: 1 addition & 3 deletions src/service/GrafanaService.js
Original file line number Diff line number Diff line change
Expand Up @@ -408,9 +408,7 @@ class GrafanaService {
* @returns {string} - The formatted title.
*/
function formatTitleWithTemplate(title, templateMap) {
if (!title) {
title = '';
}
title = title || '';
return title.replace(/\$\w+/g, (match) => {
if (templateMap[match]) {
return templateMap[match];
Expand Down

0 comments on commit ecbfca9

Please sign in to comment.