Skip to content

Commit

Permalink
v5.0.15
Browse files Browse the repository at this point in the history
  • Loading branch information
novykh committed May 23, 2024
1 parent 68bc80b commit 8faca71
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 3 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.14",
"version": "5.0.15",
"description": "Netdata frontend SDK and chart utilities",
"main": "dist/index.js",
"module": "dist/es6/index.js",
Expand Down
1 change: 1 addition & 0 deletions src/components/table/columns.js
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,7 @@ export const valueColumn = (
visible={visible}
Component={ValueOnDot}
fractionDigits={fractionDigits}
color="text"
/>
)
},
Expand Down
1 change: 1 addition & 0 deletions src/helpers/units/all.js
Original file line number Diff line number Diff line change
Expand Up @@ -4031,5 +4031,6 @@ export default {
"s/{operation}": "s",
"s/{request}": "s",
"s/{run}": "s",
pps: "{packet}/s",
},
}
4 changes: 2 additions & 2 deletions src/sdk/plugins/unitConversion/getConversionUnits.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import conversableUnits, { makeConversableKey } from "@/helpers/units/conversableUnits"
import convert, { getScales, getUnitConfig, unitsMissing, isScalable } from "@/helpers/units"
import convert, { getScales, getUnitConfig, isScalable } from "@/helpers/units"

const scalable = (units, delta, desiredUnits) => {
const [scaleKeys, scaleByKey] = getScales(units)
Expand Down Expand Up @@ -55,7 +55,7 @@ const conversable = (chart, units, delta, desiredUnits) => {
}

const getMethod = (chart, units, min, max) => {
if (unitsMissing(units) || !isScalable(units)) return ["original"]
if (!isScalable(units)) return ["original"]

const { desiredUnits } = chart.getAttributes()

Expand Down

0 comments on commit 8faca71

Please sign in to comment.