Skip to content

Commit

Permalink
Bugfix. Don't turn strings into arrays.
Browse files Browse the repository at this point in the history
  • Loading branch information
chmac committed Nov 25, 2024
1 parent 542ac16 commit 1189367
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion nr-common/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,11 @@ export function createLabelTags(
) {
const tags = [
["L", labelName],
["l", ...labelValue, labelName],
[
"l",
...(Array.isArray(labelValue) ? labelValue : [labelValue]),
labelName,
],
];
return tags;
}
Expand Down

0 comments on commit 1189367

Please sign in to comment.