Skip to content

Commit

Permalink
v5.0.17
Browse files Browse the repository at this point in the history
  • Loading branch information
novykh committed May 23, 2024
1 parent 5e58c7f commit 82cbd8d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@netdata/charts",
"version": "5.0.16",
"version": "5.0.17",
"description": "Netdata frontend SDK and chart utilities",
"main": "dist/index.js",
"module": "dist/es6/index.js",
Expand Down
2 changes: 1 addition & 1 deletion src/sdk/makeChart/makeDimensions.js
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ export default (chart, sdk) => {
if (sparkline && colorsAttr && colorsAttr.length === 1) return colorsAttr[0]

const isSelected = id === "selected"
id = !id || isSelected ? chart.getAttribute("selectedDimensions")[0] : id
id = !id || isSelected ? chart.getAttribute("selectedDimensions")[0] || id : id

if (!isNaN(partIndex)) id = id.split(",")?.[partIndex] || id

Expand Down

0 comments on commit 82cbd8d

Please sign in to comment.