Skip to content

Commit

Permalink
v5.3.2
Browse files Browse the repository at this point in the history
  • Loading branch information
novykh committed Jul 5, 2024
1 parent 9b6f97d commit aa3643b
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 9 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.3.1",
"version": "5.3.2",
"description": "Netdata frontend SDK and chart utilities",
"main": "dist/index.js",
"module": "dist/es6/index.js",
Expand Down
18 changes: 10 additions & 8 deletions src/components/table/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,14 +41,16 @@ const useColumns = (chart, options = {}) => {
return {
id: `Context-${context}`,
header: () => chart.intl(context),
columns: Object.keys(contextGroups[context]).map(dimension =>
valueColumn(chart, {
context,
dimension,
dimensionId: contextGroups[context]?.[dimension]?.[0],
...options,
})
),
columns: contextGroups[context]
? Object.keys(contextGroups[context]).map(dimension =>
valueColumn(chart, {
context,
dimension,
dimensionId: contextGroups[context]?.[dimension]?.[0],
...options,
})
)
: [],
labelProps: { textAlign: "center" },
notFlex: true,
fullWidth: true,
Expand Down

0 comments on commit aa3643b

Please sign in to comment.